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