From 27cdccf74a08005663c01e7e995bf62c2435b9ee Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 25 Aug 2010 11:56:57 +0800 Subject: sccp: Pass the sccp_connection down to the send method if it exists This allows to identify the sccp connection and send the SCCP payload down to a different stream depending on the connection. It will be used by the bsc_msc_ip to keep multiple MSC connections open. --- include/sccp/sccp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/sccp/sccp.h') diff --git a/include/sccp/sccp.h b/include/sccp/sccp.h index ed833e3..9e692cf 100644 --- a/include/sccp/sccp.h +++ b/include/sccp/sccp.h @@ -106,8 +106,9 @@ struct sccp_connection { * system functionality to implement on top of any other transport layer: * call sccp_system_incoming for incoming data (from the network) * sccp will call outgoing whenever outgoing data exists + * The conn is NULL for UDT and other messages without a connection */ -int sccp_system_init(void (*outgoing)(struct msgb *data, void *ctx), void *context); +int sccp_system_init(void (*outgoing)(struct sccp_connection *conn, struct msgb *data, void *ctx), void *context); int sccp_system_incoming(struct msgb *data); /** -- cgit v1.2.3