Remove kva_api_get versioning.

We have soname versioning now, so we should focus on getting that right
instead. This also serves as an example of correctly incrementing the
lib-version.
This commit is contained in:
Ari Koivula 2016-01-15 19:37:40 +02:00
parent a197ebd820
commit e2402c0000
2 changed files with 2 additions and 6 deletions

View file

@ -20,8 +20,8 @@ AC_CONFIG_SRCDIR([src/encmain.c])
# - Increment when making new releases and major or minor was not changed since last release. # - Increment when making new releases and major or minor was not changed since last release.
# #
# Here is a somewhat sane guide to lib versioning: http://apr.apache.org/versioning.html # Here is a somewhat sane guide to lib versioning: http://apr.apache.org/versioning.html
ver_major=2 ver_major=3
ver_minor=4 ver_minor=0
ver_release=0 ver_release=0
# not used, but it prevents configure from adding a lot of defines to the CFLAGS # not used, but it prevents configure from adding a lot of defines to the CFLAGS

View file

@ -496,10 +496,6 @@ typedef struct kvz_api {
kvz_frame_info *info_out); kvz_frame_info *info_out);
} kvz_api; } kvz_api;
// Append API version to the getters name to prevent linking against incompatible versions.
#define KVZ_API_CONCAT(func, version) func ## _apiv ## version
#define KVZ_API_EXPAND_VERSION(func, version) KVZ_API_CONCAT(func, version)
#define kvz_api_get KVZ_API_EXPAND_VERSION(kvz_api_get, KVZ_API_VERSION)
KVZ_PUBLIC const kvz_api * kvz_api_get(int bit_depth); KVZ_PUBLIC const kvz_api * kvz_api_get(int bit_depth);