[PATCH 11 of 11 c-hglib:level0 V2] get_output_data: getting the data stored in outdata field

Iulian Stana julian.stana at gmail.com
Fri Sep 13 15:32:01 CDT 2013


# HG changeset patch
# User Iulian Stana <julian.stana at gmail.com>
# Date 1379103824 -10800
#      Fri Sep 13 23:23:44 2013 +0300
# Node ID 3df6fae3fdbe8ab5e978dba1080468a46c7dc920
# Parent  2f0834015db8af5b33286c68236be6221a6cfdd8
get_output_data: getting the data stored in outdata field

diff --git a/client.c b/client.c
--- a/client.c
+++ b/client.c
@@ -305,3 +305,9 @@
 	handle->protect = 0;
 	return swap_uint32(exitcode);
 }
+
+/* return the output data. */
+char *get_output_data(hg_handle *handle)
+{
+	return handle->out_data;
+}
diff --git a/client.h b/client.h
--- a/client.h
+++ b/client.h
@@ -205,4 +205,12 @@
  * */
 int hg_exitcode(hg_handle *handle);
 
+/**
+ * \brief Getting the output data, received from the last command.
+ *
+ * \param handle The handle of the connection, wherewith I want to communicate
+ * \retval string Indicate the output data.
+ **/
+char *get_output_data(hg_handle *handle);
+
 #endif


More information about the Mercurial-devel mailing list