avb_version.h 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: MIT */
  2. /*
  3. * Copyright (C) 2017 The Android Open Source Project
  4. */
  5. #if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
  6. #error "Never include this file directly, include libavb.h instead."
  7. #endif
  8. #ifndef AVB_VERSION_H_
  9. #define AVB_VERSION_H_
  10. #include "avb_sysdeps.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /* The version number of AVB - keep in sync with avbtool. */
  15. #define AVB_VERSION_MAJOR 1
  16. #define AVB_VERSION_MINOR 1
  17. #define AVB_VERSION_SUB 0
  18. /* Returns a NUL-terminated string for the libavb version in use. The
  19. * returned string usually looks like "%d.%d.%d". Applications must
  20. * not make assumptions about the content of this string.
  21. *
  22. * Boot loaders should display this string in debug/diagnostics output
  23. * to aid with debugging.
  24. *
  25. * This is similar to the string put in the |release_string| string
  26. * field in the VBMeta struct by avbtool.
  27. */
  28. const char* avb_version_string(void);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /* AVB_VERSION_H_ */