From e86c02e107d9bef11a69ecef85d923ae4f523ef3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 10 Feb 2011 15:32:14 +0100 Subject: bsc: Move the BSC<->MSC variables to a new struct. Move the MSC related information out of the bsc_data and update the code to use this BSC configuration. This is greatly cleaning up the code and in theory there might now be two BSC and two MSCs that one application can handle (minus the missing VTY config) --- include/bsc_sccp.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/bsc_sccp.h') diff --git a/include/bsc_sccp.h b/include/bsc_sccp.h index 8811a2b..833257d 100644 --- a/include/bsc_sccp.h +++ b/include/bsc_sccp.h @@ -30,6 +30,8 @@ #include +struct bsc_msc_forward; + /* * One SCCP connection. * Use for connection tracking and fixups... @@ -61,10 +63,10 @@ struct active_sccp_con { }; void free_con(struct active_sccp_con *con); -struct active_sccp_con *find_con_by_dest_ref(struct sccp_source_reference *ref); -struct active_sccp_con *find_con_by_src_ref(struct sccp_source_reference *src_ref); -struct active_sccp_con *find_con_by_src_dest_ref(struct sccp_source_reference *src_ref, +struct active_sccp_con *find_con_by_dest_ref(struct bsc_msc_forward *, struct sccp_source_reference *ref); +struct active_sccp_con *find_con_by_src_ref(struct bsc_msc_forward *,struct sccp_source_reference *src_ref); +struct active_sccp_con *find_con_by_src_dest_ref(struct bsc_msc_forward *, struct sccp_source_reference *src_ref, struct sccp_source_reference *dst_ref); -unsigned int sls_for_src_ref(struct sccp_source_reference *ref); +unsigned int sls_for_src_ref(struct bsc_msc_forward *, struct sccp_source_reference *ref); #endif -- cgit v1.2.3