Skip to content

Commit 6fe588b

Browse files
Version the API. (#80)
Introduce QUO_VADIS_API_VERSION to start versioning the API. Signed-off-by: Samuel K. Gutierrez <[email protected]>
1 parent 6d70320 commit 6fe588b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/quo-vadis.h

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ extern "C" {
3030
/** Convenience definition. */
3131
#define QUO_VADIS 1
3232

33+
/**
34+
* This number is updated to (X<<16)+(Y<<8)+Z
35+
* when a release X.Y.Z modifies the API.
36+
*
37+
* In python: print(f'{(X<<16)+(Y<<8)+Z:#010x}')
38+
*/
39+
#define QUO_VADIS_API_VERSION 0x00000001
40+
3341
/** Opaque quo-vadis context. */
3442
struct qv_context_s;
3543
typedef struct qv_context_s qv_context_t;

0 commit comments

Comments
 (0)