2 * Declarations of routines to report version information for Wireshark
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __WS_VERSION_INFO_H__
13 #define __WS_VERSION_INFO_H__
19 #endif /* __cplusplus */
22 * Get various library compile-time versions, put them in a GString,
23 * and return the GString.
25 * "prepend_info" is called at the start to prepend any additional
26 * information before the standard library information.
28 * "append_info" is called at the end to append any additional
29 * information after the standard library information. This is
30 * required in order to, for example, put the Portaudio information
31 * at the end of the string, as we currently don't use Portaudio in
34 GString *get_compiled_version_info(void (*prepend_info)(GString *),
35 void (*append_info)(GString *));
38 * Get various library run-time versions, and the OS version, put them in
39 * a GString, and return the GString.
41 * "additional_info" is called at the end to append any additional
42 * information; this is required in order to, for example, put the
43 * Portaudio information at the end of the string, as we currently
44 * don't use Portaudio in TShark.
46 GString *get_runtime_version_info(void (*additional_info)(GString *));
48 void show_version(const gchar *prog_name, GString *comp_info_str, GString *runtime_info_str);
51 * Return a version number string for Wireshark, including, for builds
52 * from a tree checked out from Wireshark's version control system,
53 * something identifying what version was checked out.
55 const char *get_ws_vcs_version_info(void);
58 * Return version number as integers.
60 void get_ws_version_number(int *major, int *minor, int *micro);
64 #endif /* __cplusplus */
66 #endif /* __WS_VERSION_INFO_H__ */