1/*
2  Copyright (C) 2013-2015 Yubico AB
3
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Lesser General Public License as published by
6  the Free Software Foundation; either version 2.1, or (at your option) any
7  later version.
8
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
12  General Public License for more details.
13
14  You should have received a copy of the GNU Lesser General Public License
15  along with this program; if not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef U2F_HOST_VERSION_H
19#define U2F_HOST_VERSION_H
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
26/**
27 * U2FH_VERSION_STRING
28 *
29 * Pre-processor symbol with a string that describe the header file
30 * version number.  Used together with u2fh_check_version() to verify
31 * header file and run-time library consistency.
32 */
33#define U2FH_VERSION_STRING "@VERSION@"
34
35/**
36 * U2FH_VERSION_NUMBER
37 *
38 * Pre-processor symbol with a hexadecimal value describing the header
39 * file version number.  For example, when the header version is 1.2.3
40 * this symbol will have the value 0x01020300.  The last two digits
41 * are only used between public releases, and will otherwise be 00.
42 */
43#define U2FH_VERSION_NUMBER @U2FH_VERSION_NUMBER@
44
45/**
46 * U2FH_VERSION_MAJOR
47 *
48 * Pre-processor symbol with a decimal value that describe the major
49 * level of the header file version number.  For example, when the
50 * header version is 1.2.3 this symbol will be 1.
51 */
52#define U2FH_VERSION_MAJOR @U2FH_VERSION_MAJOR@
53
54/**
55 * U2FH_VERSION_MINOR
56 *
57 * Pre-processor symbol with a decimal value that describe the minor
58 * level of the header file version number.  For example, when the
59 * header version is 1.2.3 this symbol will be 2.
60 */
61#define U2FH_VERSION_MINOR @U2FH_VERSION_MINOR@
62
63/**
64 * U2FH_VERSION_PATCH
65 *
66 * Pre-processor symbol with a decimal value that describe the patch
67 * level of the header file version number.  For example, when the
68 * header version is 1.2.3 this symbol will be 3.
69 */
70#define U2FH_VERSION_PATCH @U2FH_VERSION_PATCH@
71
72  const char *u2fh_check_version (const char *req_version);
73
74#ifdef __cplusplus
75}
76#endif
77#endif
78