From b5c822c7afe8433cc5e0b14bfc1de21236849680 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 11 Aug 2013 16:23:43 +0200 Subject: added PLUG_TEST_COMPAT macro to deadbeef.h --- deadbeef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deadbeef.h') diff --git a/deadbeef.h b/deadbeef.h index b9d88a12..06119a4c 100644 --- a/deadbeef.h +++ b/deadbeef.h @@ -87,12 +87,12 @@ extern "C" { // backwards compat macro #define DB_PLUGIN_SET_API_VERSION DDB_PLUGIN_SET_API_VERSION +#define PLUG_TEST_COMPAT(plug,x,y) ((plug)->version_major == (x) && (plug)->version_minor >= (y)) + #define DDB_REQUIRE_API_VERSION(x,y)\ .plugin.api_vmajor = x,\ .plugin.api_vminor = y, -#define MAX_DECODER_PLUGINS 50 - //////////////////////////// // playlist structures -- cgit v1.2.3