aboutsummaryrefslogtreecommitdiff
path: root/doc/documentation/tutorial-examples/020.c
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-10-21 16:37:12 +0000
committerng0 <ng0@infotropique.org>2017-10-21 16:37:12 +0000
commit7f07f09d52aed7c449a330d8a82c1280776e49e0 (patch)
tree01dc30d8791a3b23661f31b046029b9de4cd6a21 /doc/documentation/tutorial-examples/020.c
parentc49513a65ed3db8ba7043481d0dab920ab40ee48 (diff)
downloadgnunet-7f07f09d52aed7c449a330d8a82c1280776e49e0.tar.gz
gnunet-7f07f09d52aed7c449a330d8a82c1280776e49e0.zip
move docmentation to separate folder
Diffstat (limited to 'doc/documentation/tutorial-examples/020.c')
-rw-r--r--doc/documentation/tutorial-examples/020.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/documentation/tutorial-examples/020.c b/doc/documentation/tutorial-examples/020.c
new file mode 100644
index 000000000..596db3069
--- /dev/null
+++ b/doc/documentation/tutorial-examples/020.c
@@ -0,0 +1,25 @@
1static void
2get_result_iterator (void *cls, struct GNUNET_TIME_Absolute expiration,
3 const struct GNUNET_HashCode *key,
4 const struct GNUNET_PeerIdentity *get_path,
5 unsigned int get_path_length,
6 const struct GNUNET_PeerIdentity *put_path,
7 unsigned int put_path_length,
8 enum GNUNET_BLOCK_Type type, size_t size,
9 const void *data)
10{
11 // Optionally:
12 GNUNET_DHT_get_stop (get_handle);
13}
14
15get_handle =
16 GNUNET_DHT_get_start (dht_handle,
17 block_type,
18 &key,
19 replication,
20 GNUNET_DHT_RO_NONE,
21 NULL,
22 0,
23 &get_result_iterator,
24 cls)
25