aboutsummaryrefslogtreecommitdiff
path: root/doc/old/tutorial/examples/008.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/old/tutorial/examples/008.c')
-rw-r--r--doc/old/tutorial/examples/008.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/old/tutorial/examples/008.c b/doc/old/tutorial/examples/008.c
new file mode 100644
index 000000000..2dffe2cf9
--- /dev/null
+++ b/doc/old/tutorial/examples/008.c
@@ -0,0 +1,22 @@
1static void
2run (void *cls,
3 const struct GNUNET_CONFIGURATION_Handle *c,
4 struct GNUNET_SERVICE_Handle *service)
5{
6}
7
8static void *
9client_connect_cb (void *cls,
10 struct GNUNET_SERVICE_Client *c,
11 struct GNUNET_MQ_Handle *mq)
12{
13 return c;
14}
15
16static void
17client_disconnect_cb (void *cls,
18 struct GNUNET_SERVICE_Client *c,
19 void *internal_cls)
20{
21 GNUNET_assert (c == internal_cls);
22}