diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-02 20:24:08 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-17 11:21:11 +0100 |
commit | c8405692b381e4079eeaf52f38610a6a24f64773 (patch) | |
tree | 1e60aff422dfe1dd703f2b0eecb7230e401faa1d /include | |
parent | 569f1e171df2f055d0be5fc637e050a523a9ae8a (diff) |
mtp: Propagate link and linkset failures in two stages
Handle a single link failure in links.c and if all the
links have failed propagate it up. This is preparing the
multiple links support.
Diffstat (limited to 'include')
-rw-r--r-- | include/bsc_data.h | 11 | ||||
-rw-r--r-- | include/mtp_data.h | 9 |
2 files changed, 14 insertions, 6 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h index 48ce137..76e6b44 100644 --- a/include/bsc_data.h +++ b/include/bsc_data.h @@ -1,7 +1,7 @@ /* Everything related to the BSC connection */ /* - * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org> - * (C) 2010 by On-Waves + * (C) 2010-2011 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2010-2011 by On-Waves * All Rights Reserved * * This program is free software: you can redistribute it and/or modify @@ -126,8 +126,11 @@ struct bsc_data { /* bsc related functions */ void release_bsc_resources(struct bsc_data *bsc); -void bsc_link_down(struct link_data *data); -void bsc_link_up(struct link_data *data); +void mtp_link_down(struct link_data *data); +void mtp_link_up(struct link_data *data); + +void mtp_linkset_down(struct mtp_link_set *); +void mtp_linkset_up(struct mtp_link_set *); /* msc related functions */ int msc_init(struct bsc_data *bsc, int mgcp); diff --git a/include/mtp_data.h b/include/mtp_data.h index c2bf841..5afcb92 100644 --- a/include/mtp_data.h +++ b/include/mtp_data.h @@ -1,6 +1,6 @@ /* - * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org> - * (C) 2010 by On-Waves + * (C) 2010-2011 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2010-2011 by On-Waves * All Rights Reserved * * This program is free software: you can redistribute it and/or modify @@ -24,6 +24,8 @@ #include <osmocore/timer.h> #include <osmocore/utils.h> +struct bsc_data; + /* MTP Level3 timers */ /* Timers for SS7 */ @@ -60,6 +62,9 @@ struct mtp_link_set { struct timer_list t2_timer; struct timer_list delay_timer; + + /* custom data */ + struct bsc_data *bsc; }; |