diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bsc_data.h | 8 | ||||
-rw-r--r-- | include/mtp_data.h | 10 |
2 files changed, 14 insertions, 4 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h index 803b7ad..f429c8a 100644 --- a/include/bsc_data.h +++ b/include/bsc_data.h @@ -1,7 +1,7 @@ /* Everything related to the BSC connection */ /* - * (C) 2010-2012 by Holger Hans Peter Freyther <zecke@selfish.org> - * (C) 2010-2012 by On-Waves + * (C) 2010-2013 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2010-2013 by On-Waves * All Rights Reserved * * This program is free software: you can redistribute it and/or modify @@ -121,6 +121,10 @@ int link_set_shutdown_links(struct mtp_link_set *); int link_set_reset_links(struct mtp_link_set *); int link_set_clear_links(struct mtp_link_set *); +/* called by the link */ +int link_set_down(struct mtp_link_set *); +int link_set_up(struct mtp_link_set *); + /* pcap */ enum { NET_IN, 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); |