diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-06-04 16:42:47 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-06-04 16:55:50 +0200 |
commit | 84406e2779bf77dd4257df11f9361e5d04e000eb (patch) | |
tree | cfd8740a09689b70a63625412cfe56eeb8fe4f4f /include | |
parent | 90f38cb7edc411b3076837f65dde606310fe3c54 (diff) |
sccp: Make sccp_write take an additional local context0.0.6
For connection less data there is no way to pass a per context
data for outgoing data, add one.
Diffstat (limited to 'include')
-rw-r--r-- | include/sccp/sccp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sccp/sccp.h b/include/sccp/sccp.h index 9e692cf..3c30a73 100644 --- a/include/sccp/sccp.h +++ b/include/sccp/sccp.h @@ -108,7 +108,7 @@ struct sccp_connection { * 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 sccp_connection *conn, struct msgb *data, void *ctx), void *context); +int sccp_system_init(void (*outgoing)(struct sccp_connection *conn, struct msgb *data, void *gctx, void *ctx), void *context); int sccp_system_incoming(struct msgb *data); /** @@ -150,7 +150,8 @@ int sccp_connection_set_incoming(const struct sockaddr_sccp *sock, */ int sccp_write(struct msgb *data, const struct sockaddr_sccp *sock_sender, - const struct sockaddr_sccp *sock_target, int class); + const struct sockaddr_sccp *sock_target, + int class, void *ctx); int sccp_set_read(const struct sockaddr_sccp *sock, int (*read_cb)(struct msgb *msgb, unsigned int, void *user_data), void *user_data); |