Skip to content

Commit

Permalink
Add QUO_API_VERSION and QUO_HAS_API_VERSIONING. (#45)
Browse files Browse the repository at this point in the history
Start versioning our API in 1.4.0. If QUO_HAS_API_VERSIONING isn't
defined, then assume a Quo release predating v1.4.0. If
QUO_HAS_API_VERSIONING exists, then use QUO_API_VERSION to determine the
API version.

Signed-off-by: Samuel K. Gutierrez <[email protected]>
  • Loading branch information
samuelkgutierrez authored Mar 6, 2024
1 parent a441aa3 commit 1198937
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/quo.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ extern "C" {
/** Convenience definition (in case you need this). */
#define LIBQUO 1

/**
* New in v1.4.0. Prior versions didn't have this defined, since we neglected to
* version our API in this way.
*/
#define QUO_HAS_API_VERSIONING 1

/**
* This number is updated to (X<<16)+(Y<<8)+Z when a release X.Y.Z modifies the
* API. This is new in v1.4.0, since we neglected to version our API in this
* way.
*/
#define QUO_API_VERSION 0x00010400

/** Opaque QUO context. */
struct QUO_t;
/** Convenience typedef. */
Expand Down

0 comments on commit 1198937

Please sign in to comment.