diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/msc/Makefile.am | 1 | ||||
-rw-r--r-- | include/osmocom/msc/gsm_data.h | 4 | ||||
-rw-r--r-- | include/osmocom/msc/msc_lac.h | 16 |
3 files changed, 21 insertions, 0 deletions
diff --git a/include/osmocom/msc/Makefile.am b/include/osmocom/msc/Makefile.am index b1a4810df..7e0a2961f 100644 --- a/include/osmocom/msc/Makefile.am +++ b/include/osmocom/msc/Makefile.am @@ -20,6 +20,7 @@ noinst_HEADERS = \ mncc.h \ mncc_int.h \ msc_ifaces.h \ + msc_lac.h \ msc_mgcp.h \ openbscdefines.h \ a_reset.h \ diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h index c79adde59..d8a84d17d 100644 --- a/include/osmocom/msc/gsm_data.h +++ b/include/osmocom/msc/gsm_data.h @@ -347,6 +347,10 @@ struct gsm_network { /* MSISDN to which to route MO emergency calls */ char *route_to_msisdn; } emergency; + + /* A list head to keep track on the LACs that are assoctiated with + * this network */ + struct llist_head lac_contexts; }; struct osmo_esme; diff --git a/include/osmocom/msc/msc_lac.h b/include/osmocom/msc/msc_lac.h new file mode 100644 index 000000000..4b825236d --- /dev/null +++ b/include/osmocom/msc/msc_lac.h @@ -0,0 +1,16 @@ +#pragma once + +#include <stdint.h> +#include <osmocom/core/linuxlist.h> +#include <osmocom/msc/gsm_data.h> + +/* A struct to keep a context information about the LACs a specific BSC is + * associated with */ +struct lac_context { + struct llist_head list; + uint16_t lac; + enum ran_type ran_type; + struct bsc_context *bsc_context; +}; + +void msc_lac_update_a(struct gsm_network *network, uint16_t lac, struct bsc_context *bsc_context); |