1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * SPDX-License-Identifier: MIT 5 */ 6 7 #include "avb_version.h" 8 9 #define AVB_QUOTE(str) #str 10 #define AVB_EXPAND_AND_QUOTE(str) AVB_QUOTE(str) 11 12 /* Keep in sync with get_release_string() in avbtool. */ 13 const char* avb_version_string(void) { 14 return AVB_EXPAND_AND_QUOTE(AVB_VERSION_MAJOR) "." AVB_EXPAND_AND_QUOTE( 15 AVB_VERSION_MINOR) "." AVB_EXPAND_AND_QUOTE(AVB_VERSION_SUB); 16 } 17