aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-26 23:34:03 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-27 09:59:06 +0100
commit452b87285bbaa8f8a71edfe532c7437ea31f5d16 (patch)
tree067ff1b7823976535563d8675804c3db8d06b92a /include
parent8cfba6c1d3abdf14fb01cb42bd558a7f5f49bb38 (diff)
allow user to give private data to osmo_sua_user_create()
... which can be resolved from the primitive call back prim_cb() by calling osmo_sccp_link_get_user_priv(). Change-Id: If4c0f96f0621fb2adf4c78dc5994d3398431d92f
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/sigtran/sua.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/sigtran/sua.h b/include/osmocom/sigtran/sua.h
index 935a4c0..766b488 100644
--- a/include/osmocom/sigtran/sua.h
+++ b/include/osmocom/sigtran/sua.h
@@ -8,7 +8,8 @@ struct osmo_sccp_link;
void osmo_sua_set_log_area(int area);
-struct osmo_sccp_user *osmo_sua_user_create(void *ctx, osmo_prim_cb prim_cb);
+struct osmo_sccp_user *osmo_sua_user_create(void *ctx, osmo_prim_cb prim_cb,
+ void *priv);
void osmo_sua_user_destroy(struct osmo_sccp_user *user);
int osmo_sua_server_listen(struct osmo_sccp_user *user, const char *hostname, uint16_t port);
@@ -19,3 +20,4 @@ struct osmo_sccp_link *osmo_sua_client_get_link(struct osmo_sccp_user *user);
/* user hands us a SCCP-USER SAP primitive down into the stack */
int osmo_sua_user_link_down(struct osmo_sccp_link *link, struct osmo_prim_hdr *oph);
+void *osmo_sccp_link_get_user_priv(struct osmo_sccp_link *slink);