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

login
register
mail settings
Submitter Iulian Stana
Date Sept. 13, 2013, 8:32 p.m.
Message ID <3df6fae3fdbe8ab5e978.1379104321@doppler>
Download mbox | patch
Permalink /patch/2443/
State Deferred, archived
Headers show

Comments

Iulian Stana - Sept. 13, 2013, 8:32 p.m.
# HG changeset patch
# User Iulian Stana <julian.stana@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

Patch

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