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/020.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/documentation/tutorial-examples/020.c (limited to 'doc/documentation/tutorial-examples/020.c') diff --git a/doc/documentation/tutorial-examples/020.c b/doc/documentation/tutorial-examples/020.c new file mode 100644 index 0000000000..596db30693 --- /dev/null +++ b/doc/documentation/tutorial-examples/020.c @@ -0,0 +1,25 @@ +static void +get_result_iterator (void *cls, struct GNUNET_TIME_Absolute expiration, + const struct GNUNET_HashCode *key, + const struct GNUNET_PeerIdentity *get_path, + unsigned int get_path_length, + const struct GNUNET_PeerIdentity *put_path, + unsigned int put_path_length, + enum GNUNET_BLOCK_Type type, size_t size, + const void *data) +{ + // Optionally: + GNUNET_DHT_get_stop (get_handle); +} + +get_handle = + GNUNET_DHT_get_start (dht_handle, + block_type, + &key, + replication, + GNUNET_DHT_RO_NONE, + NULL, + 0, + &get_result_iterator, + cls) + -- cgit v1.2.3-70-g09d2