Remove Makefile.common files
[metze/wireshark/wip.git] / ws_version_info.h
1 /* ws_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  * 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 __WS_VERSION_INFO_H__
25 #define __WS_VERSION_INFO_H__
26
27 #include <glib.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
33 /*
34  * Get various library compile-time versions, put them in a GString,
35  * and return the GString.
36  *
37  * "prepend_info" is called at the start to prepend any additional
38  * information before the standard library information.
39  *
40  * "append_info" is called at the end to append any additional
41  * information after the standard library information.  This is
42  * required in order to, for example, put the Portaudio information
43  * at the end of the string, as we currently don't use Portaudio in
44  * TShark.
45  */
46 GString *get_compiled_version_info(void (*prepend_info)(GString *),
47                                                  void (*append_info)(GString *));
48
49 /*
50  * Get various library run-time versions, and the OS version, put them in
51  * a GString, and return the GString.
52  *
53  * "additional_info" is called at the end to append any additional
54  * information; this is required in order to, for example, put the
55  * Portaudio information at the end of the string, as we currently
56  * don't use Portaudio in TShark.
57  */
58 GString *get_runtime_version_info(void (*additional_info)(GString *));
59
60 void show_version(const gchar *prog_name, GString *comp_info_str, GString *runtime_info_str);
61
62 /*
63  * Return a version number string for Wireshark, including, for builds
64  * from a tree checked out from Wireshark's version control system,
65  * something identifying what version was checked out.
66  */
67 const char *get_ws_vcs_version_info(void);
68
69 #ifdef __cplusplus
70 }
71 #endif /* __cplusplus */
72
73 #endif /* __WS_VERSION_INFO_H__ */