From 1c54dac3acf3db8863a3342584ba4dd7563102bb Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 4 May 2014 23:04:35 -0700 Subject: [PATCH] Update libobs to use semantic versioning (0.2.0) --- libobs/obs.h | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/libobs/obs.h b/libobs/obs.h index 12d68ce43..2f983a395 100644 --- a/libobs/obs.h +++ b/libobs/obs.h @@ -65,12 +65,35 @@ typedef struct obs_service *obs_service_t; extern "C" { #endif -/* LIBOBS_API_VER must be returned by module_version in each module */ +/* + * LIBOBS_API_VER is returned by module_version in each module. + * + * Libobs uses semantic versioning. See http://semver.org/ for more + * information. + */ -#define LIBOBS_API_MAJOR_VER 0 /* increment if major breaking changes */ -#define LIBOBS_API_MINOR_VER 1 /* increment if minor non-breaking additions */ -#define LIBOBS_API_VER ((LIBOBS_API_MAJOR_VER << 16) | \ - LIBOBS_API_MINOR_VER) +/* + * Increment if major breaking API changes + */ +#define LIBOBS_API_MAJOR_VER 0 /* 0 means development, anything can break */ + +/* + * Increment if backward-compatible additions + * + * Reset to zero each major version + */ +#define LIBOBS_API_MINOR_VER 2 + +/* + * Increment if backward-compatible bug fix + * + * Reset to zero each major or minor version + */ +#define LIBOBS_API_PATCH_VER 0 + +#define LIBOBS_API_VER ((LIBOBS_API_MAJOR_VER << 24) | \ + (LIBOBS_API_MINOR_VER << 16) | \ + LIBOBS_API_PATCH_VER ) /** Used for changing the order of items (for example, filters in a source, * or items in a scene) */