aboutsummaryrefslogtreecommitdiff
path: root/doc/documentation/tutorial-examples/026.c
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2017-10-25 22:36:10 +0200
committerxrs <xrs@mail36.net>2017-10-25 22:36:10 +0200
commit92b6a83e9ba576ba237d47d780f3b9b10bb26588 (patch)
treebca8f723ca2de2ed76bd3bbe416bf9472a7b96cb /doc/documentation/tutorial-examples/026.c
parent9356f42f546d61ccfb6a3ec46605c9b83fdc8546 (diff)
parent17e755c71521be9a84f0f3b46d1de6962298f733 (diff)
downloadgnunet-92b6a83e9ba576ba237d47d780f3b9b10bb26588.tar.gz
gnunet-92b6a83e9ba576ba237d47d780f3b9b10bb26588.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'doc/documentation/tutorial-examples/026.c')
-rw-r--r--doc/documentation/tutorial-examples/026.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/documentation/tutorial-examples/026.c b/doc/documentation/tutorial-examples/026.c
new file mode 100644
index 000000000..264e0b6b9
--- /dev/null
+++ b/doc/documentation/tutorial-examples/026.c
@@ -0,0 +1,52 @@
1static void
2get_callback (void *cls,
3 enum GNUNET_DHT_RouteOption options,
4 enum GNUNET_BLOCK_Type type,
5 uint32_t hop_count,
6 uint32_t desired_replication_level,
7 unsigned int path_length,
8 const struct GNUNET_PeerIdentity *path,
9 const struct GNUNET_HashCode * key)
10{
11}
12
13
14static void
15get_resp_callback (void *cls,
16 enum GNUNET_BLOCK_Type type,
17 const struct GNUNET_PeerIdentity *get_path,
18 unsigned int get_path_length,
19 const struct GNUNET_PeerIdentity *put_path,
20 unsigned int put_path_length,
21 struct GNUNET_TIME_Absolute exp,
22 const struct GNUNET_HashCode * key,
23 const void *data,
24 size_t size)
25{
26}
27
28
29static void
30put_callback (void *cls,
31 enum GNUNET_DHT_RouteOption options,
32 enum GNUNET_BLOCK_Type type,
33 uint32_t hop_count,
34 uint32_t desired_replication_level,
35 unsigned int path_length,
36 const struct GNUNET_PeerIdentity *path,
37 struct GNUNET_TIME_Absolute exp,
38 const struct GNUNET_HashCode * key,
39 const void *data,
40 size_t size)
41{
42}
43
44
45monitor_handle = GNUNET_DHT_monitor_start (dht_handle,
46 block_type,
47 key,
48 &get_callback,
49 &get_resp_callback,
50 &put_callback,
51 cls);
52