avb2.0: add Android Verified Boot 2.0 library
[oweals/u-boot.git] / lib / libavb / avb_version.h
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * SPDX-License-Identifier:     MIT
5  */
6
7 #if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
8 #error "Never include this file directly, include libavb.h instead."
9 #endif
10
11 #ifndef AVB_VERSION_H_
12 #define AVB_VERSION_H_
13
14 #include "avb_sysdeps.h"
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /* The version number of AVB - keep in sync with avbtool. */
21 #define AVB_VERSION_MAJOR 1
22 #define AVB_VERSION_MINOR 1
23 #define AVB_VERSION_SUB 0
24
25 /* Returns a NUL-terminated string for the libavb version in use.  The
26  * returned string usually looks like "%d.%d.%d". Applications must
27  * not make assumptions about the content of this string.
28  *
29  * Boot loaders should display this string in debug/diagnostics output
30  * to aid with debugging.
31  *
32  * This is similar to the string put in the |release_string| string
33  * field in the VBMeta struct by avbtool.
34  */
35 const char* avb_version_string(void);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /* AVB_VERSION_H_ */