mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Move API version info to obs-config.h
This way it doesn't interfere with any actual relevant commits related to obs.h.
This commit is contained in:
parent
bba6848c0c
commit
3a850e67c3
|
@ -17,6 +17,36 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* LIBOBS_API_VER is returned by module_version in each module.
|
||||
*
|
||||
* Libobs uses semantic versioning. See http://semver.org/ for more
|
||||
* information.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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 4
|
||||
|
||||
#define LIBOBS_API_VER ((LIBOBS_API_MAJOR_VER << 24) | \
|
||||
(LIBOBS_API_MINOR_VER << 16) | \
|
||||
LIBOBS_API_PATCH_VER )
|
||||
|
||||
#ifdef HAVE_OBSCONFIG_H
|
||||
# include "obsconfig.h"
|
||||
#else
|
||||
|
@ -24,4 +54,3 @@
|
|||
#define OBS_VERSION "unknown"
|
||||
|
||||
#endif
|
||||
|
||||
|
|
31
libobs/obs.h
31
libobs/obs.h
|
@ -26,6 +26,7 @@
|
|||
#include "callback/signal.h"
|
||||
#include "callback/proc.h"
|
||||
|
||||
#include "obs-config.h"
|
||||
#include "obs-defs.h"
|
||||
#include "obs-data.h"
|
||||
#include "obs-ui.h"
|
||||
|
@ -65,36 +66,6 @@ typedef struct obs_service *obs_service_t;
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* LIBOBS_API_VER is returned by module_version in each module.
|
||||
*
|
||||
* Libobs uses semantic versioning. See http://semver.org/ for more
|
||||
* information.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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 4
|
||||
|
||||
#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) */
|
||||
enum order_movement {
|
||||
|
|
Loading…
Reference in a new issue