aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_api.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-14 15:50:35 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-14 15:50:35 +0800
commit05a379b8570f23781f8ed4fbe02e4ead64a99117 (patch)
treed001cacb583a54b87eee694129123714dbd24a9d /openbsc/include/openbsc/bsc_api.h
parent644a0cac0c2db872823583c436832a86ad0bcec2 (diff)
bsc_api: Add a callback based BSC -> MSC api...
Diffstat (limited to 'openbsc/include/openbsc/bsc_api.h')
-rw-r--r--openbsc/include/openbsc/bsc_api.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_api.h b/openbsc/include/openbsc/bsc_api.h
index 51e344f5a..2cfdbb467 100644
--- a/openbsc/include/openbsc/bsc_api.h
+++ b/openbsc/include/openbsc/bsc_api.h
@@ -1,6 +1,25 @@
/* GSM 08.08 like API for OpenBSC */
+#ifndef OPENBSC_BSC_API_H
+#define OPENBSC_BSC_API_H
+
#include "gsm_data.h"
+struct bsc_api {
+ void (*sapi_n_reject)(struct gsm_subscriber_connection *conn, int dlci);
+ void (*cipher_mode_compl)(struct gsm_subscriber_connection *conn,
+ struct msgb *msg, uint16_t ind);
+ void (*compl_l3)(struct gsm_subscriber_connection *conn,
+ struct msgb *msg, uint16_t chosen_channel);
+ void (*ass_compl)(struct gsm_subscriber_connection *conn,
+ uint16_t rr_cause);
+ void (*ass_fail)(struct gsm_subscriber_connection *conn,
+ uint16_t rr_cause);
+ void (*clear_request)(struct gsm_subscriber_connection *conn,
+ uint32_t cause);
+ void (*clear_compl)(struct gsm_subscriber_connection *conn);
+};
int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg, int link_id);
+
+#endif