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