| 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
194WS_DLL_PUBLIC
195 void get_ws_version_number(int *major, int *minor, int *micro);
196
203WS_DLL_PUBLIC
204 void show_version(void);
205
216WS_DLL_PUBLIC
217 void show_help_header(const char *description);
218
228WS_DLL_PUBLIC
229 const char *get_copyright_info(void);
230
241WS_DLL_PUBLIC
242 const char *get_license_info(void);
243
252WS_DLL_PUBLIC
253 const char *get_license_info_short(void);
254
255#ifdef __cplusplus
256}
257#endif /* __cplusplus */
258
259#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:510
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:251
get_copyright_info
WS_DLL_PUBLIC const char * get_copyright_info(void)
Retrieve the copyright information string.
Definition version_info.c:664
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:227
gather_xxhash_runtime_info
WS_DLL_PUBLIC void gather_xxhash_runtime_info(feature_list l)
Collect XXHash runtime feature information.
Definition version_info.c:536
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:215
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:671
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:625
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:237
gather_zlib_runtime_info
WS_DLL_PUBLIC void gather_zlib_runtime_info(feature_list l)
Collect zlib runtime feature information.
Definition version_info.c:545
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:266
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:209
show_version
WS_DLL_PUBLIC void show_version(void)
Display the program name and version to standard output.
Definition version_info.c:636
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:563
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:651
get_license_info
WS_DLL_PUBLIC const char * get_license_info(void)
Retrieve the application's license information string.
Definition version_info.c:680
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:59