gtp: added "response in/to" for GPRS Data record
[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 Qt information at the
31  * end of the string, as we don't use Qt in TShark.
32  */
33 GString *get_compiled_version_info(void (*prepend_info)(GString *),
34                                                  void (*append_info)(GString *));
35
36 /*
37  * Get various library run-time versions, and the OS version, put them in
38  * a GString, and return the GString.
39  *
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.
44  */
45 GString *get_runtime_version_info(void (*additional_info)(GString *));
46
47 void show_version(const gchar *prog_name, GString *comp_info_str, GString *runtime_info_str);
48
49 /*
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.
53  */
54 const char *get_ws_vcs_version_info(void);
55
56 /*
57  * Return version number as integers.
58  */
59 void get_ws_version_number(int *major, int *minor, int *micro);
60
61 #ifdef __cplusplus
62 }
63 #endif /* __cplusplus */
64
65 #endif /* __WS_VERSION_INFO_H__ */