1*5b69db07SJason Zhu /* 2*5b69db07SJason Zhu * Copyright (C) 2017 The Android Open Source Project 3*5b69db07SJason Zhu * 4*5b69db07SJason Zhu * Permission is hereby granted, free of charge, to any person 5*5b69db07SJason Zhu * obtaining a copy of this software and associated documentation 6*5b69db07SJason Zhu * files (the "Software"), to deal in the Software without 7*5b69db07SJason Zhu * restriction, including without limitation the rights to use, copy, 8*5b69db07SJason Zhu * modify, merge, publish, distribute, sublicense, and/or sell copies 9*5b69db07SJason Zhu * of the Software, and to permit persons to whom the Software is 10*5b69db07SJason Zhu * furnished to do so, subject to the following conditions: 11*5b69db07SJason Zhu * 12*5b69db07SJason Zhu * The above copyright notice and this permission notice shall be 13*5b69db07SJason Zhu * included in all copies or substantial portions of the Software. 14*5b69db07SJason Zhu * 15*5b69db07SJason Zhu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16*5b69db07SJason Zhu * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17*5b69db07SJason Zhu * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18*5b69db07SJason Zhu * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 19*5b69db07SJason Zhu * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 20*5b69db07SJason Zhu * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21*5b69db07SJason Zhu * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22*5b69db07SJason Zhu * SOFTWARE. 23*5b69db07SJason Zhu */ 24*5b69db07SJason Zhu 25*5b69db07SJason Zhu /* 26*5b69db07SJason Zhu #if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION) 27*5b69db07SJason Zhu #error "Never include this file directly, include libavb.h instead." 28*5b69db07SJason Zhu #endif 29*5b69db07SJason Zhu */ 30*5b69db07SJason Zhu 31*5b69db07SJason Zhu #ifndef AVB_VERSION_H_ 32*5b69db07SJason Zhu #define AVB_VERSION_H_ 33*5b69db07SJason Zhu 34*5b69db07SJason Zhu #include <android_avb/avb_sysdeps.h> 35*5b69db07SJason Zhu 36*5b69db07SJason Zhu #ifdef __cplusplus 37*5b69db07SJason Zhu extern "C" { 38*5b69db07SJason Zhu #endif 39*5b69db07SJason Zhu 40*5b69db07SJason Zhu /* The version number of AVB - keep in sync with avbtool. */ 41*5b69db07SJason Zhu #define AVB_VERSION_MAJOR 1 42*5b69db07SJason Zhu #define AVB_VERSION_MINOR 0 43*5b69db07SJason Zhu #define AVB_VERSION_SUB 0 44*5b69db07SJason Zhu 45*5b69db07SJason Zhu /* Returns a NUL-terminated string for the libavb version in use. The 46*5b69db07SJason Zhu * returned string usually looks like "%d.%d.%d". Applications must 47*5b69db07SJason Zhu * not make assumptions about the content of this string. 48*5b69db07SJason Zhu * 49*5b69db07SJason Zhu * Boot loaders should display this string in debug/diagnostics output 50*5b69db07SJason Zhu * to aid with debugging. 51*5b69db07SJason Zhu * 52*5b69db07SJason Zhu * This is similar to the string put in the |release_string| string 53*5b69db07SJason Zhu * field in the VBMeta struct by avbtool. 54*5b69db07SJason Zhu */ 55*5b69db07SJason Zhu const char* avb_version_string(void); 56*5b69db07SJason Zhu 57*5b69db07SJason Zhu #ifdef __cplusplus 58*5b69db07SJason Zhu } 59*5b69db07SJason Zhu #endif 60*5b69db07SJason Zhu 61*5b69db07SJason Zhu #endif /* AVB_VERSION_H_ */ 62