diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-05 19:48:47 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 20:06:48 +0100 |
commit | 9b17c769b9b9d9c52405a2fded1431de1e34591e (patch) | |
tree | 999129385c1d1c12f1e6da6ebf82a5e4dc78af5f /openbsc/src/bsc/osmo_bsc_sccp.c | |
parent | 2a8675e49a5fac26778f6397696bd98981422f21 (diff) |
bsc: Work a bit on opening the SCCP connection to the MSC.
Most of the code is still stubs but the structure is a lot
cleaner than the one in the on-waves/bsc-master branch.
Diffstat (limited to 'openbsc/src/bsc/osmo_bsc_sccp.c')
-rw-r--r-- | openbsc/src/bsc/osmo_bsc_sccp.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_sccp.c b/openbsc/src/bsc/osmo_bsc_sccp.c index 694a30f20..d1fff9148 100644 --- a/openbsc/src/bsc/osmo_bsc_sccp.c +++ b/openbsc/src/bsc/osmo_bsc_sccp.c @@ -25,6 +25,7 @@ #include <openbsc/debug.h> #include <osmocore/gsm0808.h> +#include <osmocore/talloc.h> #include <osmocore/protocol/gsm_08_08.h> #include <osmocom/sccp/sccp.h> @@ -75,13 +76,28 @@ int bsc_queue_for_msc(struct gsm_subscriber_connection *conn, struct msgb *msg) return 0; } -int bsc_create_new_connection(struct gsm_subscriber_connection *conn, - struct msgb *msg, uint16_t chosen_channel) +int bsc_create_new_connection(struct gsm_subscriber_connection *conn) { LOGP(DMSC, LOGL_ERROR, "Not implemented yet.\n"); return -1; } +int bsc_open_connection(struct gsm_subscriber_connection *conn, struct msgb *msg) +{ + LOGP(DMSC, LOGL_ERROR, "Not implemented yet.\n"); + return -1; +} + +int bsc_delete_connection(struct gsm_subscriber_connection *conn) +{ + if (!conn->sccp_con) + return 0; + + talloc_free(conn->sccp_con); + conn->sccp_con = NULL; + return 0; +} + int osmo_bsc_sccp_init(struct gsm_network *gsmnet) { sccp_set_log_area(DSCCP); |