summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-20 19:21:18 +0200
committerwm4 <wm4@nowhere>2014-06-20 19:26:04 +0200
commit05fd3e701b50364dd032d3fff2b1a607e2c6f239 (patch)
tree49fb3a0619f58d518f3a644f16506c1d2badc9f2 /libmpv
parentaf9e40119de07d78bf8ed7f95d727627352f979d (diff)
downloadmpv-05fd3e701b50364dd032d3fff2b1a607e2c6f239.tar.bz2
mpv-05fd3e701b50364dd032d3fff2b1a607e2c6f239.tar.xz
client API: declare as stable
It is reasonably stable, so all further changes will be versioned. Also change how the libmpv version number is generated. Fix the patch version number to 0; I don't think we have a use for this. In particular, the version doesn't version mpv, just the client API.
Diffstat (limited to 'libmpv')
-rw-r--r--libmpv/client.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index 0f2a455ae3..b2b48f390f 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -31,11 +31,6 @@ extern "C" {
#endif
/**
- * Warning: this API is still work in progress. This notice will be removed
- * once the API is considered reasonably stable.
- */
-
-/**
* Mechanisms provided by this API
* -------------------------------
*
@@ -139,12 +134,13 @@ extern "C" {
*/
/**
- * The version is incremented on each change. The 16 lower bits are incremented
- * if something in mpv is changed that might affect the client API, but doesn't
- * change C API itself (like the removal of an option or a property). The higher
- * 16 bits are incremented if the C API itself changes.
+ * The version is incremented on each API change. The 16 lower bits form the
+ * minor version number, and the 16 higher bits the major version number. If
+ * the API becomes incompatible to previous versions, the major version
+ * number is incremented. This affects only C part, and not properties and
+ * options.
*/
-#define MPV_CLIENT_API_VERSION 0x00000000UL
+#define MPV_CLIENT_API_VERSION 0x00010000UL
/**
* Return the MPV_CLIENT_API_VERSION the mpv source has been compiled with.