diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 08:31:34 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 08:31:34 +0100 |
commit | 831726aa32e3d65a5d86fe33dad32f2d599c6f11 (patch) | |
tree | 1df37a2f4101f34569c3b4f0e7422690c6501bda /include | |
parent | f8055f93b13936ece45a64252e177edc17f53e23 (diff) |
link_sets: Move the submit for SCCP/ISUP into a function pointerzecke/multiple-link-set-types
In the preparation of supporting multiple link_sets types the
send routines are accessed through function pointers now.
Diffstat (limited to 'include')
-rw-r--r-- | include/linkset.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linkset.h b/include/linkset.h index 1385cf1..00dddf0 100644 --- a/include/linkset.h +++ b/include/linkset.h @@ -45,6 +45,11 @@ struct mtp_link_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); + /* + * Sending routines + */ + int (*submit_sccp) (struct mtp_link_set *set, int sls, const uint8_t *data, unsigned int len); + int (*submit_isup) (struct mtp_link_set *set, int sls, const uint8_t *data, unsigned int len); /** * Routing is very limited. We can only forward to one @@ -102,8 +107,6 @@ void mtp_link_set_stop(struct mtp_link_set *set); void mtp_link_set_reset(struct mtp_link_set *set); int mtp_link_set_data(struct mtp_link *link, struct msgb *msg); int mtp_link_handle_data(struct mtp_link *link, struct msgb *msg); -int mtp_link_set_submit_sccp_data(struct mtp_link_set *set, int sls, const uint8_t *data, unsigned int length); -int mtp_link_set_submit_isup_data(struct mtp_link_set *set, int sls, const uint8_t *data, unsigned int length); void mtp_link_set_init_slc(struct mtp_link_set *set); |