From a9c411ec8cb594775bbfc9faefcf8c8d21080402 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 15 Jun 2015 09:40:43 +0200 Subject: sccp: Allow to specify the context of the incoming message At the time a SCCP CREF is sent there is no context anymore and the user of the API might not know where to return the message to. Allow to specify the incoming context and use it on the way out. There are no more callers of _send_msg which passes a NULL connection and a NULL context. --- include/sccp/sccp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sccp/sccp.h b/include/sccp/sccp.h index 9a616c7..36b424f 100644 --- a/include/sccp/sccp.h +++ b/include/sccp/sccp.h @@ -110,6 +110,7 @@ struct sccp_connection { * The conn is NULL for UDT and other messages without a connection */ int sccp_system_init(void (*outgoing)(struct sccp_connection *conn, struct msgb *data, void *gctx, void *ctx), void *context); +int sccp_system_incoming_ctx(struct msgb *data, void *ctx); int sccp_system_incoming(struct msgb *data); /** -- cgit v1.2.3