diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-10-25 15:46:45 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-10-25 15:46:45 +0200 |
commit | 7101471b5fc9ad10a0a0c06fb2aaeb5a568dbf56 (patch) | |
tree | 589b209e1943461eccb56e1bed4e4d4323bd8c08 /doc/tutorial/examples/020.c | |
parent | 8a4b969fd2e9fb399dfd1d9d1569e95a77d599bb (diff) | |
download | gnunet-7101471b5fc9ad10a0a0c06fb2aaeb5a568dbf56.tar.gz gnunet-7101471b5fc9ad10a0a0c06fb2aaeb5a568dbf56.zip |
doc/documentation split into doc/tutorial and doc/handbook for clarity and to avoid automake freakout
Diffstat (limited to 'doc/tutorial/examples/020.c')
-rw-r--r-- | doc/tutorial/examples/020.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/tutorial/examples/020.c b/doc/tutorial/examples/020.c new file mode 100644 index 000000000..596db3069 --- /dev/null +++ b/doc/tutorial/examples/020.c | |||
@@ -0,0 +1,25 @@ | |||
1 | static void | ||
2 | get_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 | |||
15 | get_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 | |||