Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
version_info.h
Go to the documentation of this file.
1
13#ifndef __WS_VERSION_INFO_H__
14#define __WS_VERSION_INFO_H__
15
16#include <glib.h>
17#include <wsutil/feature_list.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
47WS_DLL_PUBLIC
48void ws_init_version_info(const char *appname,
49 const char* appflavor,
50 get_version_func version_func,
51 gather_feature_func gather_compile,
52 gather_feature_func gather_runtime);
53
63WS_DLL_PUBLIC
64const char *get_appname_and_version(void);
65
75WS_DLL_PUBLIC
76void
78
88WS_DLL_PUBLIC
89void
91
101WS_DLL_PUBLIC
102void
104
114WS_DLL_PUBLIC
115void
117
128WS_DLL_PUBLIC
129GString *get_compiled_version_info(gather_feature_func gather_compile);
130
140WS_DLL_PUBLIC
141void
143
153WS_DLL_PUBLIC
154void
156
166WS_DLL_PUBLIC
167void
169
181WS_DLL_PUBLIC
182GString *get_runtime_version_info(gather_feature_func gather_runtime);
183
193WS_DLL_PUBLIC
194const char *get_ws_vcs_version_info(void);
195
205WS_DLL_PUBLIC
206const char *get_ss_vcs_version_info(void);
207
217WS_DLL_PUBLIC
218const char *get_ws_vcs_version_info_short(void);
219
230WS_DLL_PUBLIC
231void get_ws_version_number(int *major, int *minor, int *micro);
232
239WS_DLL_PUBLIC
240void show_version(void);
241
252WS_DLL_PUBLIC
253void show_help_header(const char *description);
254
264WS_DLL_PUBLIC
265const char *get_copyright_info(void);
266
277WS_DLL_PUBLIC
278const char *get_license_info(void);
279
288WS_DLL_PUBLIC
289const char *get_license_info_short(void);
290
291#ifdef __cplusplus
292}
293#endif /* __cplusplus */
294
295#endif /* __WS_VERSION_INFO_H__ */
GList ** feature_list
Semi-opaque handle to a list of features or dependencies.
Definition feature_list.h:33
const char *(* get_version_func)(void)
Pointer to a function which gets a version string.
Definition feature_list.h:52
void(* gather_feature_func)(feature_list l)
Pointer to a function which gathers a list of features.
Definition feature_list.h:47
WS_DLL_PUBLIC void gather_pcre2_runtime_info(feature_list l)
Collect PCRE2 runtime feature information.
Definition version_info.c:512
WS_DLL_PUBLIC void gather_zlib_ng_compile_info(feature_list l)
Collect zlib-ng compile-time feature information.
Definition version_info.c:253
WS_DLL_PUBLIC const char * get_copyright_info(void)
Retrieve the copyright information string.
Definition version_info.c:701
WS_DLL_PUBLIC void gather_xxhash_compile_info(feature_list l)
Collect XXH3/XXHash compile-time feature information.
Definition version_info.c:229
WS_DLL_PUBLIC const char * get_ss_vcs_version_info(void)
Retrieve the Stratoshark version string with VCS metadata.
Definition version_info.c:642
WS_DLL_PUBLIC void gather_xxhash_runtime_info(feature_list l)
Collect XXHash runtime feature information.
Definition version_info.c:538
WS_DLL_PUBLIC void gather_pcre2_compile_info(feature_list l)
Collect PCRE2 compile-time feature information.
Definition version_info.c:217
WS_DLL_PUBLIC const char * get_license_info_short(void)
Retrieve a short summary of the application's license information.
Definition version_info.c:708
WS_DLL_PUBLIC const char * get_ws_vcs_version_info(void)
Retrieve the Wireshark version string with VCS metadata.
Definition version_info.c:632
WS_DLL_PUBLIC void get_ws_version_number(int *major, int *minor, int *micro)
Retrieve the Wireshark version number as integers.
Definition version_info.c:662
WS_DLL_PUBLIC void gather_zlib_compile_info(feature_list l)
Collect zlib compile-time feature information.
Definition version_info.c:239
WS_DLL_PUBLIC void gather_zlib_runtime_info(feature_list l)
Collect zlib runtime feature information.
Definition version_info.c:547
WS_DLL_PUBLIC GString * get_compiled_version_info(gather_feature_func gather_compile)
Retrieve compile-time version information for various libraries.
Definition version_info.c:268
WS_DLL_PUBLIC const char * get_ws_vcs_version_info_short(void)
Retrieve a shortened Wireshark version string with VCS metadata.
Definition version_info.c:652
WS_DLL_PUBLIC const char * get_appname_and_version(void)
Retrieve the application name and version string.
Definition version_info.c:211
WS_DLL_PUBLIC void show_version(void)
Display the program name and version to standard output.
Definition version_info.c:673
WS_DLL_PUBLIC GString * get_runtime_version_info(gather_feature_func gather_runtime)
Retrieve runtime version information for libraries and the operating system.
Definition version_info.c:565
WS_DLL_PUBLIC void show_help_header(const char *description)
Display help header with program name, version, and description.
Definition version_info.c:688
WS_DLL_PUBLIC const char * get_license_info(void)
Retrieve the application's license information string.
Definition version_info.c:717
WS_DLL_PUBLIC void ws_init_version_info(const char *appname, const char *appflavor, get_version_func version_func, gather_feature_func gather_compile, gather_feature_func gather_runtime)
Initialize version and build information for the application. Initialize information about the progra...
Definition version_info.c:61