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

login
register
mail settings
Submitter Iulian Stana
Date Sept. 3, 2013, 8:30 p.m.
Message ID <77eded817539c237d206.1378240253@doppler>
Download mbox | patch
Permalink /patch/2319/
State Deferred, archived
Headers show

Comments

Iulian Stana - Sept. 3, 2013, 8:30 p.m.
# HG changeset patch
# User Iulian Stana <julian.stana@gmail.com>
# Date 1378237563 -10800
#      Tue Sep 03 22:46:03 2013 +0300
# Node ID 77eded817539c237d2064ce86338ec499fd7ac29
# Parent  000e97597b0ae4871fdec76cec095df11f202995
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
@@ -383,4 +383,9 @@ 
 	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
@@ -197,4 +197,12 @@ 
  * */
 int hg_exitcode(hg_handle *handle);
 
+/**
+ * \brief Getting the output data, stored in outdata, hg_handle field.
+ *
+ * \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