aboutsummaryrefslogtreecommitdiffstats
path: root/src/isup.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-03-19 08:31:34 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-03-19 08:31:34 +0100
commit831726aa32e3d65a5d86fe33dad32f2d599c6f11 (patch)
tree1df37a2f4101f34569c3b4f0e7422690c6501bda /src/isup.c
parentf8055f93b13936ece45a64252e177edc17f53e23 (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 'src/isup.c')
-rw-r--r--src/isup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/isup.c b/src/isup.c
index f9ea0ae..614d7d4 100644
--- a/src/isup.c
+++ b/src/isup.c
@@ -133,7 +133,7 @@ static int handle_circuit_reset_grs(struct mtp_link_set *set, int sls, int cic,
if (!resp)
return -1;
- mtp_link_set_submit_isup_data(set, sls, resp->l2h, msgb_l2len(resp));
+ set->submit_isup(set, sls, resp->l2h, msgb_l2len(resp));
msgb_free(resp);
return 0;
}
@@ -157,7 +157,7 @@ static int handle_circuit_reset_cgb(struct mtp_link_set *set, int sls, int cic,
if (!resp)
return -1;
- mtp_link_set_submit_isup_data(set, sls, resp->l2h, msgb_l2len(resp));
+ set->submit_isup(set, sls, resp->l2h, msgb_l2len(resp));
msgb_free(resp);
return 0;
}
@@ -172,7 +172,7 @@ static int send_cgu(struct mtp_link_set *set, int sls, int cic, int range)
if (!resp)
return -1;
- mtp_link_set_submit_isup_data(set, sls, resp->l2h, msgb_l2len(resp));
+ set->submit_isup(set, sls, resp->l2h, msgb_l2len(resp));
msgb_free(resp);
return 0;
}
@@ -200,7 +200,7 @@ static int handle_cgu(struct mtp_link_set *set, int sls, int cic,
out = msgb_put(resp, size);
memcpy(out, data, size);
- mtp_link_set_submit_isup_data(set, sls, resp->l2h, msgb_l2len(resp));
+ set->submit_isup(set, sls, resp->l2h, msgb_l2len(resp));
msgb_free(resp);
return 0;
}
@@ -212,7 +212,7 @@ static int handle_simple_resp(struct mtp_link_set *set, int sls, int cic, int ms
resp = isup_simple_alloc(cic, msg_type);
if (!resp)
return -1;
- mtp_link_set_submit_isup_data(set, sls, resp->l2h, msgb_l2len(resp));
+ set->submit_isup(set, sls, resp->l2h, msgb_l2len(resp));
msgb_free(resp);
return 0;
}