Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
950B

  1. #pragma once
  2. #include "private/macros.h"
  3. #include "private/std.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct clap_version {
  8. // This is the major ABI and API design
  9. // Version 0.X.Y correspond to the development stage, API and ABI are not stable
  10. // Version 1.X.Y correspont to the release stage, API and ABI are stable
  11. uint32_t major;
  12. uint32_t minor;
  13. uint32_t revision;
  14. } clap_version_t;
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #define CLAP_VERSION_MAJOR ((uint32_t)1)
  19. #define CLAP_VERSION_MINOR ((uint32_t)1)
  20. #define CLAP_VERSION_REVISION ((uint32_t)1)
  21. #define CLAP_VERSION_INIT {CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION}
  22. static const CLAP_CONSTEXPR clap_version_t CLAP_VERSION = CLAP_VERSION_INIT;
  23. CLAP_NODISCARD static inline CLAP_CONSTEXPR bool
  24. clap_version_is_compatible(const clap_version_t v) {
  25. // versions 0.x.y were used during development stage and aren't compatible
  26. return v.major >= 1;
  27. }