| 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
20 extern "C" {
21#endif /* __cplusplus */
22
47WS_DLL_PUBLIC
48 void 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
64 const char *get_appname_and_version(void);
65
75WS_DLL_PUBLIC
76 void
77 gather_pcre2_compile_info(feature_list l);
78
88WS_DLL_PUBLIC
89 void
90 gather_xxhash_compile_info(feature_list l);
91
101WS_DLL_PUBLIC
102 void
103 gather_zlib_compile_info(feature_list l);
104
114WS_DLL_PUBLIC
115 void
116 gather_zlib_ng_compile_info(feature_list l);
117
128WS_DLL_PUBLIC
129GString *get_compiled_version_info(gather_feature_func gather_compile);
130
140WS_DLL_PUBLIC
141 void
142 gather_pcre2_runtime_info(feature_list l);
143
153WS_DLL_PUBLIC
154 void
155 gather_xxhash_runtime_info(feature_list l);
156
166WS_DLL_PUBLIC
167 void
168 gather_zlib_runtime_info(feature_list l);
169
181WS_DLL_PUBLIC
182GString *get_runtime_version_info(gather_feature_func gather_runtime);
183
193WS_DLL_PUBLIC
194 const char *get_ws_vcs_version_info(void);
195
205WS_DLL_PUBLIC
206 const char *get_ss_vcs_version_info(void);
207
217WS_DLL_PUBLIC
218 const char *get_ws_vcs_version_info_short(void);
219
230WS_DLL_PUBLIC
231 void get_ws_version_number(int *major, int *minor, int *micro);
232
239WS_DLL_PUBLIC
240 void show_version(void);
241
252WS_DLL_PUBLIC
253 void show_help_header(const char *description);
254
264WS_DLL_PUBLIC
265 const char *get_copyright_info(void);
266
277WS_DLL_PUBLIC
278 const char *get_license_info(void);
279
288WS_DLL_PUBLIC
289 const char *get_license_info_short(void);
290
291#ifdef __cplusplus
292}
293#endif /* __cplusplus */
294
295#endif /* __WS_VERSION_INFO_H__ */
feature_list.h
feature_list
GList ** feature_list
Semi-opaque handle to a list of features or dependencies.
Definition feature_list.h:33
get_version_func
const char *(* get_version_func)(void)
Pointer to a function which gets a version string.
Definition feature_list.h:52
gather_feature_func
void(* gather_feature_func)(feature_list l)
Pointer to a function which gathers a list of features.
Definition feature_list.h:47
gather_pcre2_runtime_info
WS_DLL_PUBLIC void gather_pcre2_runtime_info(feature_list l)
Collect PCRE2 runtime feature information.
Definition version_info.c:512
gather_zlib_ng_compile_info
WS_DLL_PUBLIC void gather_zlib_ng_compile_info(feature_list l)
Collect zlib-ng compile-time feature information.
Definition version_info.c:253
get_copyright_info
WS_DLL_PUBLIC const char * get_copyright_info(void)
Retrieve the copyright information string.
Definition version_info.c:701
gather_xxhash_compile_info
WS_DLL_PUBLIC void gather_xxhash_compile_info(feature_list l)
Collect XXH3/XXHash compile-time feature information.
Definition version_info.c:229
get_ss_vcs_version_info
WS_DLL_PUBLIC const char * get_ss_vcs_version_info(void)
Retrieve the Stratoshark version string with VCS metadata.
Definition version_info.c:642
gather_xxhash_runtime_info
WS_DLL_PUBLIC void gather_xxhash_runtime_info(feature_list l)
Collect XXHash runtime feature information.
Definition version_info.c:538
gather_pcre2_compile_info
WS_DLL_PUBLIC void gather_pcre2_compile_info(feature_list l)
Collect PCRE2 compile-time feature information.
Definition version_info.c:217
get_license_info_short
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
get_ws_vcs_version_info
WS_DLL_PUBLIC const char * get_ws_vcs_version_info(void)
Retrieve the Wireshark version string with VCS metadata.
Definition version_info.c:632
get_ws_version_number
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
gather_zlib_compile_info
WS_DLL_PUBLIC void gather_zlib_compile_info(feature_list l)
Collect zlib compile-time feature information.
Definition version_info.c:239
gather_zlib_runtime_info
WS_DLL_PUBLIC void gather_zlib_runtime_info(feature_list l)
Collect zlib runtime feature information.
Definition version_info.c:547
get_compiled_version_info
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
get_ws_vcs_version_info_short
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
get_appname_and_version
WS_DLL_PUBLIC const char * get_appname_and_version(void)
Retrieve the application name and version string.
Definition version_info.c:211
show_version
WS_DLL_PUBLIC void show_version(void)
Display the program name and version to standard output.
Definition version_info.c:673
get_runtime_version_info
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
show_help_header
WS_DLL_PUBLIC void show_help_header(const char *description)
Display help header with program name, version, and description.
Definition version_info.c:688
get_license_info
WS_DLL_PUBLIC const char * get_license_info(void)
Retrieve the application's license information string.
Definition version_info.c:717
ws_init_version_info
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