Initialize rq_hdr.session
[metze/wireshark/wip.git] / version_info.h
1 /* version_info.h
2  * Declarations of outines to report version information for stuff used
3  * by Wireshark
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef __VERSION_INFO_H__
25 #define __VERSION_INFO_H__
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31 /*
32  * The Git version string or ""
33  */
34 extern const gchar *wireshark_gitversion;
35
36 /*
37  * Get various library compile-time versions and append them to
38  * the specified GString.
39  *
40  * "prepend_info" is called at the start to prepend any additional
41  * information.
42  *
43  * "append_info" is called at the end to append any additional
44  * information; this is required in order to, for example, put the
45  * Portaudio information at the end of the string, as we currently
46  * don't use Portaudio in TShark.
47  */
48 void get_compiled_version_info(GString *str,
49     void (*prepend_info)(GString *),
50     void (*append_info)(GString *));
51
52 /*
53  * Get the OS version, and append it to the GString
54  */
55 void get_os_version_info(GString *str);
56
57 /*
58  * Get various library run-time versions, and the OS version, and append
59  * them to the specified GString.
60  */
61 void get_runtime_version_info(GString *str,
62     void (*additional_info)(GString *));
63
64 /*
65  * Get copyright information.
66  */
67 const char *get_copyright_info(void);
68
69 #if defined(_WIN32)
70 /*
71  * Get the major OS version.
72  */
73 guint32 get_os_major_version();
74 #endif
75
76 #ifdef __cplusplus
77 }
78 #endif /* __cplusplus */
79
80 #endif /* __VERSION_INFO_H__ */