path: root/examples
diff options
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-10-13 14:17:40 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2011-10-14 20:51:19 +0200
commit6e0415a9cc7626825285437e99ba67dbf36e628c (patch)
tree7fbe0af95576740af323c902614baac867ac355f /examples
parent2bd6adfd86f2dd88362e90701f9d347ececc83c6 (diff)
datagram: change prototype of osmo_dgram_conn_set_read_cb
This patch changes the prototype of osmo_dgram_conn_set_read_cb. Now it takes one callback to a generic struct osmo_dgram_conn instead of osmo_dgram_server_conn. This is useful in case that you want to reply to one message using the datagram socket (without this change is not possible).
Diffstat (limited to 'examples')
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/lapd-over-datagram-network.c b/examples/lapd-over-datagram-network.c
index 9f6e6d8..3dbc210 100644
--- a/examples/lapd-over-datagram-network.c
+++ b/examples/lapd-over-datagram-network.c
@@ -44,7 +44,7 @@ void sighandler(int foo)
-int read_cb(struct osmo_dgram_server_conn *conn, struct msgb *msg)
+int read_cb(struct osmo_dgram_conn *conn, struct msgb *msg)
int error;
diff --git a/examples/lapd-over-datagram-user.c b/examples/lapd-over-datagram-user.c
index 7337f5b..4c76fac 100644
--- a/examples/lapd-over-datagram-user.c
+++ b/examples/lapd-over-datagram-user.c
@@ -43,7 +43,7 @@ void sighandler(int foo)
-static int read_cb(struct osmo_dgram_server_conn *conn, struct msgb *msg)
+static int read_cb(struct osmo_dgram_conn *conn, struct msgb *msg)
int error;