aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/femtobts.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-07-22 22:42:36 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-22 22:42:36 +0200
commit678321d013c320c31a1820135f32cee63d0c0ae7 (patch)
treee782cd0500da4a06e36583fdadc619a27bc8b44b /src/osmo-bts-sysmo/femtobts.h
parente729a3d595baf4f3fb9bf572840c698fe71ec072 (diff)
determine (and use) the API version as indicated in the header files
From our header files v2.4 onwards, we include some macros that allow us to do compile-time checks for the API header version. As older headers don't have those macros, we have to fall back to assume it will be v2.2
Diffstat (limited to 'src/osmo-bts-sysmo/femtobts.h')
-rw-r--r--src/osmo-bts-sysmo/femtobts.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/femtobts.h b/src/osmo-bts-sysmo/femtobts.h
index b91a86fc..5a716ee0 100644
--- a/src/osmo-bts-sysmo/femtobts.h
+++ b/src/osmo-bts-sysmo/femtobts.h
@@ -12,6 +12,15 @@
//#define USE_L1_RTP_MODE /* Tell L1 to use RTP mode */
#endif
+/* older header files don't have this */
+#ifndef SUPERFEMTO_API
+#define SUPERFEMTO_API(x,y,z) ((x << 16) + (y << 8) + z)
+#endif
+
+#ifndef SUPERFEMTO_API_VERSION
+#define SUPERFEMTO_API_VERSION SUPERFEMTO_API(2,2,0)
+#endif
+
enum l1prim_type {
L1P_T_REQ,
L1P_T_CONF,