Sort the PCCC_ES values, as required in a value_string_ext.
[metze/wireshark/wip.git] / version_info.h
1 /* version_info.h
2  * Declarations of routines to report version information for Wireshark
3  * programs
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11
12 #ifndef __WS_VERSION_INFO_H__
13 #define __WS_VERSION_INFO_H__
14
15 #include <glib.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20
21 /*
22  * Get various library compile-time versions, put them in a GString,
23  * and return the GString.
24  *
25  * "prepend_info" is called at the start to prepend any additional
26  * information before the standard library information.
27  *
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
32  * TShark.
33  */
34 GString *get_compiled_version_info(void (*prepend_info)(GString *),
35                                                  void (*append_info)(GString *));
36
37 /*
38  * Get various library run-time versions, and the OS version, put them in
39  * a GString, and return the GString.
40  *
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.
45  */
46 GString *get_runtime_version_info(void (*additional_info)(GString *));
47
48 void show_version(const gchar *prog_name, GString *comp_info_str, GString *runtime_info_str);
49
50 /*
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.
54  */
55 const char *get_ws_vcs_version_info(void);
56
57 /*
58  * Return version number as integers.
59  */
60 void get_ws_version_number(int *major, int *minor, int *micro);
61
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65
66 #endif /* __WS_VERSION_INFO_H__ */