1 /* -*- mode:C; c-file-style: "bsd" -*- */
3 * Copyright (c) 2012-2013 Yubico AB
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef __YKPERS_VERSION_H_INCLUDED__
32 #define __YKPERS_VERSION_H_INCLUDED__
39 * YKPERS_VERSION_STRING
41 * Pre-processor symbol with a string that describe the header file
42 * version number. Used together with ykpers_check_version() to verify
43 * header file and run-time library consistency.
45 #define YKPERS_VERSION_STRING "@VERSION@"
48 * YKPERS_VERSION_NUMBER
50 * Pre-processor symbol with a hexadecimal value describing the header
51 * file version number. For example, when the header version is 1.2.3
52 * this symbol will have the value 0x01020300. The last two digits
53 * are only used between public releases, and will otherwise be 00.
55 #define YKPERS_VERSION_NUMBER @YKPERS_VERSION_NUMBER@
58 * YKPERS_VERSION_MAJOR
60 * Pre-processor symbol with a decimal value that describe the major
61 * level of the header file version number. For example, when the
62 * header version is 1.2.3 this symbol will be 1.
64 #define YKPERS_VERSION_MAJOR @YKPERS_VERSION_MAJOR@
67 * YKPERS_VERSION_MINOR
69 * Pre-processor symbol with a decimal value that describe the minor
70 * level of the header file version number. For example, when the
71 * header version is 1.2.3 this symbol will be 2.
73 #define YKPERS_VERSION_MINOR @YKPERS_VERSION_MINOR@
76 * YKPERS_VERSION_PATCH
78 * Pre-processor symbol with a decimal value that describe the patch
79 * level of the header file version number. For example, when the
80 * header version is 1.2.3 this symbol will be 3.
82 #define YKPERS_VERSION_PATCH @YKPERS_VERSION_PATCH@
84 const char *ykpers_check_version (const char *req_version);
90 #endif /* __YKPERS_VERSION_H_INCLUDED__ */