The configure script produces include/idzebra/version.h
[idzebra-moved-to-github.git] / include / idzebra / version.h.in
1 /* This file is part of the Zebra server.
2    Copyright (C) 1995-2008 Index Data
3
4 Zebra is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8
9 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18 */
19
20 #ifndef IDZEBRA_VERSION_H
21 #define IDZEBRA_VERSION_H
22
23 #include <yaz/yconfig.h>
24
25 YAZ_BEGIN_CDECL
26
27 /** \brief Version as string */
28 #define ZEBRAVER "@VERSION@"
29
30 /** \brief Version as integer (for comparison purposes) */
31 #define ZEBRA_VERSIONL 0x@VERSION_HEX@
32
33 /** \brief Version for Windows DLL/EXE */
34 #define ZEBRA_FILEVERSION @WIN_FILEVERSION@
35
36 /** \brief SHA1 ID as generated by Git */
37 #define ZEBRA_VERSION_SHA1 "@VERSION_SHA1@"
38
39 /** \brief Returns Zebra version and SHA1 ID as generated by Git
40     \param version_str buffer for version (at least 16 bytes)
41     \param sha1_str SHA1 ID. Use NULL for not getting the ID
42     \returns version as integer
43
44     The sha1_str if non-NULL must point to a buffer of at least
45     65 bytes (64 ID + null char).
46 */
47 YAZ_EXPORT
48 void zebra_get_version(char *version_str, char *sha1_str);
49
50 YAZ_END_CDECL
51
52 #endif
53 /*
54  * Local variables:
55  * c-basic-offset: 4
56  * indent-tabs-mode: nil
57  * End:
58  * vim: shiftwidth=4 tabstop=8 expandtab
59  */
60