1 /* This file is part of the Zebra server.
2 Copyright (C) 1994-2011 Index Data
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
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
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
20 #ifndef IDZEBRA_VERSION_H
21 #define IDZEBRA_VERSION_H
23 #include <yaz/yconfig.h>
27 /** \brief Version as string */
28 #define ZEBRAVER "@VERSION@"
30 /** \brief Version as integer (for comparison purposes) */
31 #define ZEBRA_VERSIONL 0x@VERSION_HEX@
33 /** \brief Version for Windows DLL/EXE */
34 #define ZEBRA_FILEVERSION @WIN_FILEVERSION@
36 /** \brief SHA1 ID as generated by Git */
37 #define ZEBRA_VERSION_SHA1 "@VERSION_SHA1@"
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
44 The sha1_str if non-NULL must point to a buffer of at least
45 65 bytes (64 ID + null char).
48 void zebra_get_version(char *version_str, char *sha1_str);
56 * indent-tabs-mode: nil
58 * vim: shiftwidth=4 tabstop=8 expandtab