diff options
Diffstat (limited to 'doc/documentation/tutorial-examples/008.c')
-rw-r--r-- | doc/documentation/tutorial-examples/008.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/documentation/tutorial-examples/008.c b/doc/documentation/tutorial-examples/008.c new file mode 100644 index 0000000000..2dffe2cf91 --- /dev/null +++ b/doc/documentation/tutorial-examples/008.c @@ -0,0 +1,22 @@ +static void +run (void *cls, + const struct GNUNET_CONFIGURATION_Handle *c, + struct GNUNET_SERVICE_Handle *service) +{ +} + +static void * +client_connect_cb (void *cls, + struct GNUNET_SERVICE_Client *c, + struct GNUNET_MQ_Handle *mq) +{ + return c; +} + +static void +client_disconnect_cb (void *cls, + struct GNUNET_SERVICE_Client *c, + void *internal_cls) +{ + GNUNET_assert (c == internal_cls); +} |