summaryrefslogtreecommitdiff
path: root/wsutil/ws_version_info.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-30 22:28:25 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-31 06:29:11 +0000
commit27be466c9b6ac1bdd62a5b86bf9c684ac55482ee (patch)
treeef81ff7dfb56101e3e1ce762c9a6a2c671c8d54d /wsutil/ws_version_info.h
parent84110d2981fbc017ef3771e8c051054b6546bc1f (diff)
downloadwireshark-27be466c9b6ac1bdd62a5b86bf9c684ac55482ee.tar.gz
Do the full string in get_{compiled,runtime}_version_info().
Have them start the string with "Compiled" or "Running on", and return the string when done. Change-Id: Ic4d290c963621fa0385dc5aab766fd4ad31d3810 Reviewed-on: https://code.wireshark.org/review/6155 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/ws_version_info.h')
-rw-r--r--wsutil/ws_version_info.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/wsutil/ws_version_info.h b/wsutil/ws_version_info.h
index 03f57fc92d..b2cf6b3b6c 100644
--- a/wsutil/ws_version_info.h
+++ b/wsutil/ws_version_info.h
@@ -31,27 +31,31 @@ extern "C" {
#endif /* __cplusplus */
/*
- * Get various library compile-time versions and append them to
- * the specified GString.
+ * Get various library compile-time versions, put them in a GString,
+ * and return the GString.
*
* "prepend_info" is called at the start to prepend any additional
- * information.
+ * information before the standard library information.
*
* "append_info" is called at the end to append any additional
- * information; this is required in order to, for example, put the
- * Portaudio information at the end of the string, as we currently
- * don't use Portaudio in TShark.
+ * information after the standard library information. This is
+ * required in order to, for example, put the Portaudio information
+ * at the end of the string, as we currently don't use Portaudio in
+ * TShark.
*/
-WS_DLL_PUBLIC void get_compiled_version_info(GString *str,
- void (*prepend_info)(GString *),
- void (*append_info)(GString *));
+WS_DLL_PUBLIC GString *get_compiled_version_info(void (*prepend_info)(GString *),
+ void (*append_info)(GString *));
/*
- * Get various library run-time versions, and the OS version, and append
- * them to the specified GString.
+ * Get various library run-time versions, and the OS version, put them in
+ * a GString, and return the GString.
+ *
+ * "additional_info" is called at the end to append any additional
+ * information; this is required in order to, for example, put the
+ * Portaudio information at the end of the string, as we currently
+ * don't use Portaudio in TShark.
*/
-WS_DLL_PUBLIC void get_runtime_version_info(GString *str,
- void (*additional_info)(GString *));
+WS_DLL_PUBLIC GString *get_runtime_version_info(void (*additional_info)(GString *));
WS_DLL_PUBLIC void show_version(const gchar *prog_name, GString *comp_info_str, GString *runtime_info_str);