aboutsummaryrefslogtreecommitdiff
path: root/doc/old/tutorial/examples/023.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2022-10-05 13:35:00 +0200
committert3sserakt <t3ss@posteo.de>2022-10-05 13:35:00 +0200
commit8e4312d5e44a83e2baeb3fc15465b5e70919e6cf (patch)
treee4fe3388c0c18d9fa025c95820089d4ec5a801d4 /doc/old/tutorial/examples/023.c
parent247230d737e3e4709392148bfabbde25871b6914 (diff)
parent95fd039097d261626916cfc260a06a29d3d4fc15 (diff)
downloadgnunet-8e4312d5e44a83e2baeb3fc15465b5e70919e6cf.tar.gz
gnunet-8e4312d5e44a83e2baeb3fc15465b5e70919e6cf.zip
Merge branch 'master' of ssh://git.gnunet.org/gnunet
Diffstat (limited to 'doc/old/tutorial/examples/023.c')
-rw-r--r--doc/old/tutorial/examples/023.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/old/tutorial/examples/023.c b/doc/old/tutorial/examples/023.c
new file mode 100644
index 000000000..820c38b10
--- /dev/null
+++ b/doc/old/tutorial/examples/023.c
@@ -0,0 +1,17 @@
1void *
2libgnunet_plugin_block_SERVICE_init (void *cls)
3{
4 static enum GNUNET_BLOCK_Type types[] =
5 {
6 GNUNET_BLOCK_TYPE_SERVICE_BLOCKYPE,
7 GNUNET_BLOCK_TYPE_ANY
8 };
9 struct GNUNET_BLOCK_PluginFunctions *api;
10
11 api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions);
12 api->evaluate = &block_plugin_SERICE_evaluate;
13 api->get_key = &block_plugin_SERVICE_get_key;
14 api->types = types;
15 return api;
16}
17