Permalink
Browse files

Add helper macros for Linux DVB API versioning

  • Loading branch information...
andoma committed Jul 29, 2012
1 parent 0c835da commit e004a003d0c3ee6fa509ff5590de330c4150215d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/dvb/dvb.h
View
@@ -24,6 +24,11 @@
#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);

0 comments on commit e004a00

Please sign in to comment.