diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-08-15 15:53:00 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-03-16 11:56:10 +0100 |
commit | 8ec4952557f9b4fff3792c3a57e6cf660fcf39e8 (patch) | |
tree | 7044b1fb00052ca6ae9248a3db47c17d429b2fe5 /openbsc/include/openbsc/osmo_msc_data.h | |
parent | 4d31900e2dec112cad159475bcdb4cdbe734213c (diff) |
bsc: Create a osmo_bsc_data and embed osmo_msc_data
We want to have multiple MSCs but we also have some data
that is only present on a per BSC basis. Right now the
MSC data is not allocated with talloc, so we have some
change in the talloc contexts.
Diffstat (limited to 'openbsc/include/openbsc/osmo_msc_data.h')
-rw-r--r-- | openbsc/include/openbsc/osmo_msc_data.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/osmo_msc_data.h b/openbsc/include/openbsc/osmo_msc_data.h index 59b75c303..6f9f3a2b0 100644 --- a/openbsc/include/openbsc/osmo_msc_data.h +++ b/openbsc/include/openbsc/osmo_msc_data.h @@ -57,20 +57,30 @@ struct osmo_msc_data { /* destinations */ struct llist_head dests; + /* ussd welcome text */ + char *ussd_welcome_txt; /* mgcp agent */ struct osmo_wqueue mgcp_agent; +}; + +/* + * Per BSC data. + */ +struct osmo_bsc_data { + struct gsm_network *network; + + /* msc configuration */ + struct osmo_msc_data msc; /* rf ctl related bits */ char *mid_call_txt; int mid_call_timeout; char *rf_ctrl_name; struct osmo_bsc_rf *rf_ctrl; - - /* ussd welcome text */ - char *ussd_welcome_txt; }; + int osmo_bsc_msc_init(struct gsm_network *network); int osmo_bsc_sccp_init(struct gsm_network *gsmnet); int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto); |