From 7f07f09d52aed7c449a330d8a82c1280776e49e0 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 21 Oct 2017 16:37:12 +0000 Subject: move docmentation to separate folder --- doc/documentation/tutorial-examples/023.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/documentation/tutorial-examples/023.c (limited to 'doc/documentation/tutorial-examples/023.c') diff --git a/doc/documentation/tutorial-examples/023.c b/doc/documentation/tutorial-examples/023.c new file mode 100644 index 0000000000..820c38b10a --- /dev/null +++ b/doc/documentation/tutorial-examples/023.c @@ -0,0 +1,17 @@ +void * +libgnunet_plugin_block_SERVICE_init (void *cls) +{ + static enum GNUNET_BLOCK_Type types[] = + { + GNUNET_BLOCK_TYPE_SERVICE_BLOCKYPE, + GNUNET_BLOCK_TYPE_ANY + }; + struct GNUNET_BLOCK_PluginFunctions *api; + + api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions); + api->evaluate = &block_plugin_SERICE_evaluate; + api->get_key = &block_plugin_SERVICE_get_key; + api->types = types; + return api; +} + -- cgit v1.2.3-70-g09d2