summaryrefslogtreecommitdiff
path: root/lib/libavb/avb_version.c
blob: 92a2edfc465334e317871039b9df09ed96219e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * SPDX-License-Identifier:	MIT
 */

#include "avb_version.h"

#define AVB_QUOTE(str) #str
#define AVB_EXPAND_AND_QUOTE(str) AVB_QUOTE(str)

/* Keep in sync with get_release_string() in avbtool. */
const char* avb_version_string(void) {
  return AVB_EXPAND_AND_QUOTE(AVB_VERSION_MAJOR) "." AVB_EXPAND_AND_QUOTE(
      AVB_VERSION_MINOR) "." AVB_EXPAND_AND_QUOTE(AVB_VERSION_SUB);
}