Move some code (including the optional objects) into libwsutil
[obnox/wireshark/wip.git] / version_info.h
index 565ca44f0a765805662e47de71fe3c288a73973d..d002b7805dc75447355ea1ddb03eca9f7dd30dd8 100644 (file)
@@ -33,7 +33,7 @@ extern "C" {
 /*
  * The svn version string or ""
  */
-const gchar *svnversion;
+extern const gchar *wireshark_svnversion;
 
 /*
  * Get various library compile-time versions and append them to
@@ -47,17 +47,31 @@ const gchar *svnversion;
 void get_compiled_version_info(GString *str,
     void (*additional_info)(GString *));
 
+/*
+ * Get compile-time information used only by applications that use
+ * libwireshark.
+ */
+void get_epan_compiled_version_info(GString *str);
+
 /*
  * Get various library run-time versions, and the OS version, and append
  * them to the specified GString.
  */
-void get_runtime_version_info(GString *str);
+void get_runtime_version_info(GString *str,
+    void (*additional_info)(GString *));
 
 /*
  * Get copyright information.
  */
 const char *get_copyright_info(void);
 
+#if defined(_WIN32)
+/*
+ * Get the major OS version.
+ */
+guint32 get_os_major_version();
+#endif
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */