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 Qt information at the
31 * end of the string, as we don't use Qt in TShark.
33 GString *get_compiled_version_info(void (*prepend_info)(GString *),
34 void (*append_info)(GString *));
37 * Get various library run-time versions, and the OS version, put them in
38 * a GString, and return the GString.
40 * "additional_info" is called at the end to append any additional
41 * information; this is required in order to, for example, put the
42 * libcap information at the end of the string, as we currently
43 * don't use libcap in TShark.
45 GString *get_runtime_version_info(void (*additional_info)(GString *));
47 void show_version(const gchar *prog_name, GString *comp_info_str, GString *runtime_info_str);
50 * Return a version number string for Wireshark, including, for builds
51 * from a tree checked out from Wireshark's version control system,
52 * something identifying what version was checked out.
54 const char *get_ws_vcs_version_info(void);
57 * Return version number as integers.
59 void get_ws_version_number(int *major, int *minor, int *micro);
63 #endif /* __cplusplus */
65 #endif /* __WS_VERSION_INFO_H__ */