diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 08:02:25 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 08:04:28 +0100 |
commit | 2a2b2a5f6dfcfbc41e4e1ab24b7d5bd5901b4d02 (patch) | |
tree | 8ba7177363a784c57b36c7844d7b8c2ac715aa99 /include/mtp_data.h | |
parent | 3c0d6b3f6253d57a5e3a7045b0ac6d49fbe3f9e9 (diff) |
link_sets: Remove direct function calls for data/up/down from MTP3
We want to support different link_sets types. To do this we will
need to reduce the coupling of mtp_link_set with the application.
This is the first step to remove the notifications. This comes with
a performance cost but it has not been measured.
In the long run the conditions for if (set->on_bla) should be
removed as this indicates a wrong configuration of the linkset.
Diffstat (limited to 'include/mtp_data.h')
-rw-r--r-- | include/mtp_data.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/mtp_data.h b/include/mtp_data.h index 69db8f7..5c91cbc 100644 --- a/include/mtp_data.h +++ b/include/mtp_data.h @@ -51,6 +51,14 @@ struct mtp_link_set { int nr; char *name; + /* + * Callbacks for the SS7 application + */ + void (*on_down) (struct mtp_link_set *set); + void (*on_up) (struct mtp_link_set *set); + void (*on_sccp) (struct mtp_link_set *set, struct msgb *msg, int sls); + void (*on_isup) (struct mtp_link_set *set, struct msgb *msg, int sls); + /** * Routing is very limited. We can only forward to one @@ -166,8 +174,6 @@ void mtp_link_unblock(struct mtp_link *link); /* to be implemented for MSU sending */ void mtp_link_submit(struct mtp_link *link, struct msgb *msg); -void mtp_link_set_forward_sccp(struct mtp_link_set *set, struct msgb *msg, int sls); -void mtp_link_set_forward_isup(struct mtp_link_set *set, struct msgb *msg, int sls); void mtp_link_restart(struct mtp_link *link); int mtp_link_set_send(struct mtp_link_set *set, struct msgb *msg); |