diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-18 19:21:54 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-18 19:21:54 +0100 |
commit | 83227e4dde874d02601e129fdb4f5bc5a95c0e20 (patch) | |
tree | c18f2c69ba9c279d1eb9e85ee66200003260ae8c /src | |
parent | d93c84f96e7b7e652ac5a937c1f27df0913fca18 (diff) |
link_sets: Name functions working on linksets as such
This is in preparation of having different kind of linksets, with
and without MTP and be able to bridge them. This will allow us to
to implement SCCPlite and M3UA.
Diffstat (limited to 'src')
-rw-r--r-- | src/bsc.c | 2 | ||||
-rw-r--r-- | src/links.c | 8 | ||||
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/sccp_state.c | 4 |
4 files changed, 8 insertions, 8 deletions
@@ -98,7 +98,7 @@ static void sigint() handled = 1; if (bsc) { llist_for_each_entry(set, &bsc->linksets, entry) - link_shutdown_all(set); + link_set_shutdown_links(set); } exit(0); diff --git a/src/links.c b/src/links.c index 1b97e58..4d3cdf0 100644 --- a/src/links.c +++ b/src/links.c @@ -107,7 +107,7 @@ struct mtp_link_set *link_set_create(struct bsc_data *bsc) return set; } -int link_init(struct bsc_data *bsc, struct mtp_link_set *set) +int link_set_init_links(struct bsc_data *bsc, struct mtp_link_set *set) { int i; struct mtp_udp_link *lnk; @@ -144,7 +144,7 @@ int link_init(struct bsc_data *bsc, struct mtp_link_set *set) return 0; } -int link_shutdown_all(struct mtp_link_set *set) +int link_set_shutdown_links(struct mtp_link_set *set) { struct mtp_link *lnk; @@ -153,7 +153,7 @@ int link_shutdown_all(struct mtp_link_set *set) return 0; } -int link_reset_all(struct mtp_link_set *set) +int link_set_reset_links(struct mtp_link_set *set) { struct mtp_link *lnk; @@ -162,7 +162,7 @@ int link_reset_all(struct mtp_link_set *set) return 0; } -int link_clear_all(struct mtp_link_set *set) +int link_set_clear_links(struct mtp_link_set *set) { struct mtp_link *lnk; @@ -118,7 +118,7 @@ int main(int argc, char **argv) return rc; /* create the links and start */ - if (link_init(bsc, set) != 0) + if (link_set_init_links(bsc, set) != 0) return -1; ss7_application_setup(app, APP_CELLMGR, diff --git a/src/sccp_state.c b/src/sccp_state.c index c2b3834..616167f 100644 --- a/src/sccp_state.c +++ b/src/sccp_state.c @@ -186,7 +186,7 @@ void app_clear_connections(struct ss7_application *app) free_con(con); } - link_clear_all(app->route_src.set); + link_set_clear_links(app->route_src.set); } void app_resources_released(struct ss7_application *app) @@ -205,7 +205,7 @@ static void bsc_reset_timeout(void *_app) LOGP(DINP, LOGL_ERROR, "The BSC did not answer the GSM08.08 reset. Restart MTP\n"); mtp_link_set_stop(app->route_src.set); app_clear_connections(app); - link_reset_all(app->route_src.set); + link_set_reset_links(app->route_src.set); app_resources_released(app); return; } |