From 6fe588b28800c1ed548dc5eca7f1b2d87e0d46ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20K=2E=20Guti=C3=A9rrez?= Date: Thu, 7 Mar 2024 22:10:43 -0700 Subject: [PATCH] Version the API. (#80) Introduce QUO_VADIS_API_VERSION to start versioning the API. Signed-off-by: Samuel K. Gutierrez --- include/quo-vadis.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/quo-vadis.h b/include/quo-vadis.h index 71184936..eaf12d8a 100644 --- a/include/quo-vadis.h +++ b/include/quo-vadis.h @@ -30,6 +30,14 @@ extern "C" { /** Convenience definition. */ #define QUO_VADIS 1 +/** + * This number is updated to (X<<16)+(Y<<8)+Z + * when a release X.Y.Z modifies the API. + * + * In python: print(f'{(X<<16)+(Y<<8)+Z:#010x}') + */ +#define QUO_VADIS_API_VERSION 0x00000001 + /** Opaque quo-vadis context. */ struct qv_context_s; typedef struct qv_context_s qv_context_t;