doc: gnunet-c-tutorial: more includes of examples.
[oweals/gnunet.git] / doc / tutorial-examples / 020.c
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, const void *data)
9 {
10   // Optionally:
11   GNUNET_DHT_get_stop (get_handle);
12 }
13
14 get_handle =
15       GNUNET_DHT_get_start (dht_handle,
16                             block_type,
17                             &key,
18                             replication,
19                             GNUNET_DHT_RO_NONE,
20                             NULL,
21                             0,
22                             &get_result_iterator,
23                             cls)
24