15b69db07SJason Zhu /* 25b69db07SJason Zhu * Copyright (C) 2017 The Android Open Source Project 35b69db07SJason Zhu * 45b69db07SJason Zhu * Permission is hereby granted, free of charge, to any person 55b69db07SJason Zhu * obtaining a copy of this software and associated documentation 65b69db07SJason Zhu * files (the "Software"), to deal in the Software without 75b69db07SJason Zhu * restriction, including without limitation the rights to use, copy, 85b69db07SJason Zhu * modify, merge, publish, distribute, sublicense, and/or sell copies 95b69db07SJason Zhu * of the Software, and to permit persons to whom the Software is 105b69db07SJason Zhu * furnished to do so, subject to the following conditions: 115b69db07SJason Zhu * 125b69db07SJason Zhu * The above copyright notice and this permission notice shall be 135b69db07SJason Zhu * included in all copies or substantial portions of the Software. 145b69db07SJason Zhu * 155b69db07SJason Zhu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 165b69db07SJason Zhu * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 175b69db07SJason Zhu * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 185b69db07SJason Zhu * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 195b69db07SJason Zhu * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 205b69db07SJason Zhu * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 215b69db07SJason Zhu * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 225b69db07SJason Zhu * SOFTWARE. 235b69db07SJason Zhu */ 245b69db07SJason Zhu 255b69db07SJason Zhu /* 265b69db07SJason Zhu #if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION) 275b69db07SJason Zhu #error "Never include this file directly, include libavb.h instead." 285b69db07SJason Zhu #endif 295b69db07SJason Zhu */ 305b69db07SJason Zhu 315b69db07SJason Zhu #ifndef AVB_VERSION_H_ 325b69db07SJason Zhu #define AVB_VERSION_H_ 335b69db07SJason Zhu 345b69db07SJason Zhu #include <android_avb/avb_sysdeps.h> 355b69db07SJason Zhu 365b69db07SJason Zhu #ifdef __cplusplus 375b69db07SJason Zhu extern "C" { 385b69db07SJason Zhu #endif 395b69db07SJason Zhu 405b69db07SJason Zhu /* The version number of AVB - keep in sync with avbtool. */ 415b69db07SJason Zhu #define AVB_VERSION_MAJOR 1 42*ab608f80SJason Zhu #define AVB_VERSION_MINOR 1 435b69db07SJason Zhu #define AVB_VERSION_SUB 0 445b69db07SJason Zhu 455b69db07SJason Zhu /* Returns a NUL-terminated string for the libavb version in use. The 465b69db07SJason Zhu * returned string usually looks like "%d.%d.%d". Applications must 475b69db07SJason Zhu * not make assumptions about the content of this string. 485b69db07SJason Zhu * 495b69db07SJason Zhu * Boot loaders should display this string in debug/diagnostics output 505b69db07SJason Zhu * to aid with debugging. 515b69db07SJason Zhu * 525b69db07SJason Zhu * This is similar to the string put in the |release_string| string 535b69db07SJason Zhu * field in the VBMeta struct by avbtool. 545b69db07SJason Zhu */ 555b69db07SJason Zhu const char* avb_version_string(void); 565b69db07SJason Zhu 575b69db07SJason Zhu #ifdef __cplusplus 585b69db07SJason Zhu } 595b69db07SJason Zhu #endif 605b69db07SJason Zhu 615b69db07SJason Zhu #endif /* AVB_VERSION_H_ */ 62