aboutsummaryrefslogtreecommitdiffstats
path: root/include/sccp/sccp.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-25 11:56:57 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-25 12:01:12 +0800
commit27cdccf74a08005663c01e7e995bf62c2435b9ee (patch)
treea76b2d77db6ac57fd1e69a035656084aa7c508f7 /include/sccp/sccp.h
parente9acdc861c466b434e4261781ff2a674613e642c (diff)
sccp: Pass the sccp_connection down to the send method if it exists0.0.3
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.
Diffstat (limited to 'include/sccp/sccp.h')
-rw-r--r--include/sccp/sccp.h3
1 files changed, 2 insertions, 1 deletions
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);
/**