summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/common
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-09-11 12:42:29 +0200
committerAndreas.Eversberg2010-09-18 16:02:07 +0200
commitdf05c6ca94a5597a83afd29e7df5b2e4b6343fc2 (patch)
treeba6f4a5e7c0997e78408e892456359000a82b933 /src/host/layer23/include/osmocom/bb/common
parent[layer23] Added BTSAP socket interface to layer23 (diff)
downloadosmocom-df05c6ca94a5597a83afd29e7df5b2e4b6343fc2.tar.gz
osmocom-df05c6ca94a5597a83afd29e7df5b2e4b6343fc2.tar.xz
osmocom-df05c6ca94a5597a83afd29e7df5b2e4b6343fc2.zip
[layer23] Added BTSAP socket interface to layer23
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/logging.h1
-rw-r--r--src/host/layer23/include/osmocom/bb/common/sap_interface.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/logging.h b/src/host/layer23/include/osmocom/bb/common/logging.h
index 922ef11..683c685 100644
--- a/src/host/layer23/include/osmocom/bb/common/logging.h
+++ b/src/host/layer23/include/osmocom/bb/common/logging.h
@@ -17,6 +17,7 @@ enum {
DPAG,
DLAPDM,
DL1C,
+ DSAP,
DSUM,
DSIM,
};
diff --git a/src/host/layer23/include/osmocom/bb/common/sap_interface.h b/src/host/layer23/include/osmocom/bb/common/sap_interface.h
new file mode 100644
index 0000000..f2f577a
--- /dev/null
+++ b/src/host/layer23/include/osmocom/bb/common/sap_interface.h
@@ -0,0 +1,11 @@
+#ifndef _SAP_INTERFACE_H
+#define _SAP_INTERFACE_H
+
+typedef int (*osmosap_cb_t)(struct msgb *msg, struct osmocom_ms *ms);
+
+int sap_open(struct osmocom_ms *ms, const char *socket_path);
+int sap_close(struct osmocom_ms *ms);
+int osmosap_send(struct osmocom_ms *ms, struct msgb *msg);
+int osmosap_register_handler(struct osmocom_ms *ms, osmosap_cb_t cb);
+
+#endif /* _SAP_INTERFACE_H */