From 452b87285bbaa8f8a71edfe532c7437ea31f5d16 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 26 Dec 2015 23:34:03 +0100 Subject: 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 --- include/osmocom/sigtran/sua.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3