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