Forráskód Böngészése

libobs: Move API version info to obs-config.h

This way it doesn't interfere with any actual relevant commits related
to obs.h.
jp9000 11 éve
szülő
commit
3a850e67c3
2 módosított fájl, 31 hozzáadás és 31 törlés
  1. 30 1
      libobs/obs-config.h
  2. 1 30
      libobs/obs.h

+ 30 - 1
libobs/obs-config.h

@@ -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
-

+ 1 - 30
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 {