Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add helper macros for Linux DVB API versioning

  • Loading branch information...
commit e004a003d0c3ee6fa509ff5590de330c4150215d 1 parent 0c835da
@andoma authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/dvb/dvb.h
View
5 src/dvb/dvb.h
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.