summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-06-09 13:14:11 +0200
committerPablo Neira Ayuso2011-06-09 13:14:11 +0200
commit0b099b27df4325f48749e2cec10dc6f52a21c513 (patch)
tree13624a2e13c84e8c354620a497644aec7b76c9f9
parentinclude: document functions required by hsl driver (diff)
downloadlibosmo-abis-0b099b27df4325f48749e2cec10dc6f52a21c513.tar.gz
libosmo-abis-0b099b27df4325f48749e2cec10dc6f52a21c513.tar.xz
libosmo-abis-0b099b27df4325f48749e2cec10dc6f52a21c513.zip
include: remove internal definition that are now in libosmocore
Still in one separate patch for libosmocore, but they may become part of mainline soon.
-rw-r--r--include/internal.h57
-rw-r--r--include/osmocom/abis/logging.h16
-rw-r--r--include/osmocom/abis/signal.h17
-rw-r--r--src/e1_input.c2
-rw-r--r--src/input/hsl.c1
-rw-r--r--src/input/ipaccess.c1
-rw-r--r--src/input/lapd.c1
-rw-r--r--src/input/misdn.c8
-rw-r--r--src/trau_frame.c1
9 files changed, 40 insertions, 64 deletions
diff --git a/include/internal.h b/include/internal.h
index 7d0b151..9d16722 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -12,61 +12,4 @@ struct osmo_fd;
struct msgb *ipaccess_read_msg(struct osmo_fd *bfd, int *error);
void ipaccess_prepend_header(struct msgb *msg, int proto);
-/* things I don't know what to do with yet. */
-
-/* from include/openbsc/signal.h, we need SS_INPUT and S_GLOBAL_SHUTDOWN. */
-enum signal_subsystems {
- SS_PAGING,
- SS_SMS,
- SS_ABISIP,
- SS_NM,
- SS_LCHAN,
- SS_SUBSCR,
- SS_SCALL,
- SS_GLOBAL,
- SS_CHALLOC,
- SS_NS,
- SS_IPAC_NWL,
- SS_RF,
- SS_MSC,
- SS_HO,
- SS_INPUT,
-};
-
-enum signal_global {
- S_GLOBAL_SHUTDOWN,
- S_GLOBAL_BTS_CLOSE_OM,
-};
-
-/* from include/openbsc/debug.h */
-enum {
- DRLL,
- DCC,
- DMM,
- DRR,
- DRSL,
- DNM,
- DMNCC,
- DSMS,
- DPAG,
- DMEAS,
- DMI,
- DMIB,
- DMUX,
- DINP,
- DSCCP,
- DMSC,
- DMGCP,
- DHO,
- DDB,
- DREF,
- DGPRS,
- DNS,
- DBSSGP,
- DLLC,
- DSNDCP,
- DNAT,
- Debug_LastEntry,
-};
-
#endif
diff --git a/include/osmocom/abis/logging.h b/include/osmocom/abis/logging.h
new file mode 100644
index 0000000..c3cac11
--- /dev/null
+++ b/include/osmocom/abis/logging.h
@@ -0,0 +1,16 @@
+#ifndef _OSMO_ABIS_LOGGING_H_
+#define _OSMO_ABIS_LOGGING_H_
+
+#include <osmocom/core/logging.h>
+
+/* logging subsystems. */
+enum {
+ DINP = OSMO_LOG_SS_ABIS_RESERVED,
+ DMUX,
+ DMI,
+ DMIB,
+ DRSL,
+ DNM,
+};
+
+#endif
diff --git a/include/osmocom/abis/signal.h b/include/osmocom/abis/signal.h
new file mode 100644
index 0000000..cf5ad55
--- /dev/null
+++ b/include/osmocom/abis/signal.h
@@ -0,0 +1,17 @@
+#ifndef _OSMO_ABIS_SIGNAL_H_
+#define _OSMO_ABIS_SIGNAL_H_
+
+#include <osmocom/core/signal.h>
+
+/* signal subsystems. */
+enum {
+ SS_GLOBAL = OSMO_SIGNAL_SS_ABIS_RESERVED,
+ SS_INPUT,
+};
+
+/* signal types. */
+enum {
+ S_GLOBAL_SHUTDOWN = OSMO_SIGNAL_T_ABIS_RESERVED,
+};
+
+#endif
diff --git a/src/e1_input.c b/src/e1_input.c
index 7904f61..1d02e47 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -47,6 +47,8 @@
#include <osmocom/abis/e1_input.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/abis/subchan_demux.h>
+#include <osmocom/abis/logging.h>
+#include <osmocom/abis/signal.h>
#include <talloc.h>
#define NUM_E1_TS 32
diff --git a/src/input/hsl.c b/src/input/hsl.c
index 068989b..f00338f 100644
--- a/src/input/hsl.c
+++ b/src/input/hsl.c
@@ -51,6 +51,7 @@
#include <osmocom/core/logging.h>
#include <osmocom/abis/ipaccess.h>
#include <osmocom/core/socket.h>
+#include <osmocom/abis/logging.h>
#include <talloc.h>
#define HSL_TCP_PORT 2500
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 92819ac..78b2533 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -42,6 +42,7 @@
#include <osmocom/abis/e1_input.h>
#include <osmocom/abis/ipaccess.h>
#include <osmocom/core/socket.h>
+#include <osmocom/abis/logging.h>
#define PRIV_OML 1
#define PRIV_RSL 2
diff --git a/src/input/lapd.c b/src/input/lapd.c
index c8b777c..6c070e3 100644
--- a/src/input/lapd.c
+++ b/src/input/lapd.c
@@ -43,6 +43,7 @@
#include <talloc.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/timer.h>
+#include <osmocom/abis/logging.h>
#define SABM_INTERVAL 0, 300000
diff --git a/src/input/misdn.c b/src/input/misdn.c
index afa9032..4bc2e4b 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -46,13 +46,7 @@
#include <osmocom/core/logging.h>
#include <osmocom/abis/e1_input.h>
#include <talloc.h>
-/*#include <openbsc/debug.h>
-#include <openbsc/gsm_data.h>
-#include <openbsc/abis_nm.h>
-#include <openbsc/abis_rsl.h>
-#include <openbsc/subchan_demux.h>
-#include <openbsc/e1_input.h>
-#include <openbsc/signal.h> */
+#include <osmocom/abis/logging.h>
#define TS1_ALLOC_SIZE 300
diff --git a/src/trau_frame.c b/src/trau_frame.c
index bf0dbd4..fc5651d 100644
--- a/src/trau_frame.c
+++ b/src/trau_frame.c
@@ -28,6 +28,7 @@
#include <osmocom/abis/trau_frame.h>
#include <osmocom/abis/subchan_demux.h>
#include <osmocom/core/logging.h>
+#include <osmocom/abis/logging.h>
static uint32_t get_bits(const uint8_t *bitbuf, int offset, int num)
{