Merged silc_1_1_branch to trunk.
[silc.git] / includes / silcversion.h.in
1 /*
2
3   silcversion.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 1997 - 2007 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef SILCVERSION_H
21 #define SILCVERSION_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 /* Version check macro.  Use this to check that package is of specific
28    version compile time.  Use the __SILC_XXX_VERSION below in comparison. */
29 #define SILC_VERSION(a, b, c) (((a) << 24) + ((b) << 16) + ((c) << 8)
30 @__SILC_PACKAGE_VERSION@
31
32 #define SILC_VERSION_STRING "@VERSION@"
33 #define SILC_DIST_VERSION_STRING "@VERSION@"
34 #define SILC_PROTOCOL_VERSION_STRING "SILC-1.2-@VERSION@ @PACKAGE@"
35 #define SILC_NAME "SILC @PACKAGE_NAME@"
36
37 /* SILC Protocol version number */
38 #define SILC_PROTOCOL_VERSION_CURRENT 12
39
40 /* SILC version string */
41 #define silc_version SILC_VERSION_STRING
42 #define silc_dist_version SILC_DIST_VERSION_STRING
43 #define silc_version_string SILC_PROTOCOL_VERSION_STRING
44 #define silc_name SILC_NAME
45 #define silc_fullname "Secure Internet Live Conferencing"
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* SILCVERSION_H */