]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add helper macros for Linux DVB API versioning
authorAndreas Öman <andreas@lonelycoder.com>
Sun, 29 Jul 2012 09:42:12 +0000 (11:42 +0200)
committerAndreas Öman <andreas@lonelycoder.com>
Sun, 29 Jul 2012 09:42:12 +0000 (11:42 +0200)
src/dvb/dvb.h

index 2cb5b943557a40fb891640b1eb6fae64b50f2bdf..73d7387ba7b5c1d419c188a468a53e03be749335 100644 (file)
 #include "htsmsg.h"
 
 
+#define DVB_VER_INT(maj,min) (((maj) << 16) + (min))
+
+#define DVB_VER_ATLEAST(maj, min) \
+ (DVB_VER_INT(DVB_API_VERSION,  DVB_API_VERSION_MINOR) >= DVB_VER_INT(maj, min))
+
 TAILQ_HEAD(th_dvb_adapter_queue, th_dvb_adapter);
 RB_HEAD(th_dvb_mux_instance_tree, th_dvb_mux_instance);
 TAILQ_HEAD(th_dvb_mux_instance_queue, th_dvb_mux_instance);