]> err.no Git - yubikey-personalization/blob - ykpers-version.h.in
Merge tag 'v1.15.1'
[yubikey-personalization] / ykpers-version.h.in
1 /* -*- mode:C; c-file-style: "bsd" -*- */
2 /*
3  * Copyright (c) 2012-2013 Yubico AB
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are
8  * met:
9  *
10  *     * Redistributions of source code must retain the above copyright
11  *       notice, this list of conditions and the following disclaimer.
12  *
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.
17  *
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.
29  */
30
31 #ifndef __YKPERS_VERSION_H_INCLUDED__
32 #define __YKPERS_VERSION_H_INCLUDED__
33
34 # ifdef __cplusplus
35 extern "C" {
36 # endif
37
38 /**
39  * YKPERS_VERSION_STRING
40  *
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.
44  */
45 #define YKPERS_VERSION_STRING "@VERSION@"
46
47 /**
48  * YKPERS_VERSION_NUMBER
49  *
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.
54  */
55 #define YKPERS_VERSION_NUMBER @YKPERS_VERSION_NUMBER@
56
57 /**
58  * YKPERS_VERSION_MAJOR
59  *
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.
63  */
64 #define YKPERS_VERSION_MAJOR @YKPERS_VERSION_MAJOR@
65
66 /**
67  * YKPERS_VERSION_MINOR
68  *
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.
72  */
73 #define YKPERS_VERSION_MINOR @YKPERS_VERSION_MINOR@
74
75 /**
76  * YKPERS_VERSION_PATCH
77  *
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.
81  */
82 #define YKPERS_VERSION_PATCH @YKPERS_VERSION_PATCH@
83
84 const char *ykpers_check_version (const char *req_version);
85
86 # ifdef __cplusplus
87 }
88 # endif
89
90 #endif  /* __YKPERS_VERSION_H_INCLUDED__ */