blob: 57c6ece851c984121c5198ddbf99f0e63d0675ca [file] [log] [blame]
Tom Rini897a1d92018-06-19 11:21:44 -04001/* SPDX-License-Identifier: MIT */
Igor Opaniukd8f9d2a2018-06-03 21:56:36 +03002/*
3 * Copyright (C) 2017 The Android Open Source Project
Igor Opaniukd8f9d2a2018-06-03 21:56:36 +03004 */
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
16extern "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 */
34const char* avb_version_string(void);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* AVB_VERSION_H_ */