aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 17:26:35 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 17:27:05 +0800
commit32aaef689d557c4187a0d931742a67955a924da4 (patch)
treee612b9974075b8a1530262b012de526cfbe7dc2f
parenteea5a1bcd6f520a2a01544e25417bf54e4c50d70 (diff)
bsc; Register the BSC API with many blanks.
-rw-r--r--openbsc/src/bsc/osmo_bsc_api.c54
-rw-r--r--openbsc/src/bsc/osmo_bsc_main.c2
2 files changed, 55 insertions, 1 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_api.c b/openbsc/src/bsc/osmo_bsc_api.c
index fdda68c4c..eed58be06 100644
--- a/openbsc/src/bsc/osmo_bsc_api.c
+++ b/openbsc/src/bsc/osmo_bsc_api.c
@@ -20,7 +20,59 @@
#include <openbsc/osmo_bsc.h>
+static void bsc_sapi_n_reject(struct gsm_subscriber_connection *conn, int dlci)
+{
+}
+
+static void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn,
+ struct msgb *msg, uint8_t chosen_encr)
+{
+}
+
+static void bsc_cipher_mode_reject(struct gsm_subscriber_connection *conn,
+ struct msgb *msg, uint16_t reason)
+{
+}
+
+static int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg,
+ uint16_t chosen_channel)
+{
+ return BSC_API_CONN_POL_REJECT;
+}
+
+static void bsc_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg)
+{
+}
+
+static void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint16_t rr_cause)
+{
+}
+
+static void bsc_assign_fail(struct gsm_subscriber_connection *conn, uint32_t cause)
+{
+}
+
+static void bsc_clear_request(struct gsm_subscriber_connection *conn, uint32_t cause)
+{
+}
+
+static void bsc_clear_compl(struct gsm_subscriber_connection *conn)
+{
+}
+
+static struct bsc_api bsc_handler = {
+ .sapi_n_reject = bsc_sapi_n_reject,
+ .cipher_mode_compl = bsc_cipher_mode_compl,
+ .cipher_mode_reject = bsc_cipher_mode_reject,
+ .compl_l3 = bsc_compl_l3,
+ .dtap = bsc_dtap,
+ .assign_compl = bsc_assign_compl,
+ .assign_fail = bsc_assign_fail,
+ .clear_request = bsc_clear_request,
+ .clear_compl = bsc_clear_compl,
+};
+
struct bsc_api *osmo_bsc_api()
{
- return NULL;
+ return &bsc_handler;
}
diff --git a/openbsc/src/bsc/osmo_bsc_main.c b/openbsc/src/bsc/osmo_bsc_main.c
index 90c40446e..a6097db4f 100644
--- a/openbsc/src/bsc/osmo_bsc_main.c
+++ b/openbsc/src/bsc/osmo_bsc_main.c
@@ -21,6 +21,7 @@
#include <openbsc/debug.h>
#include <openbsc/gsm_data.h>
+#include <openbsc/osmo_bsc.h>
#include <openbsc/osmo_bsc_rf.h>
#include <openbsc/osmo_msc_data.h>
#include <openbsc/signal.h>
@@ -214,6 +215,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Bootstrapping the network failed. exiting.\n");
exit(1);
}
+ bsc_api_init(bsc_gsmnet, osmo_bsc_api());
if (rf_ctl) {
struct osmo_msc_data *data = bsc_gsmnet->msc_data;