1 /* SPDX-License-Identifier: MIT */
3 * Copyright (C) 2017 The Android Open Source Project
6 #if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
7 #error "Never include this file directly, include libavb.h instead."
10 #ifndef AVB_VERSION_H_
11 #define AVB_VERSION_H_
13 #include "avb_sysdeps.h"
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
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.
28 * Boot loaders should display this string in debug/diagnostics output
29 * to aid with debugging.
31 * This is similar to the string put in the |release_string| string
32 * field in the VBMeta struct by avbtool.
34 const char* avb_version_string(void);
40 #endif /* AVB_VERSION_H_ */