diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-27 08:58:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-27 08:58:06 +0000 |
commit | 4f3f80d05ac7101b8049c352d70abe97bc81ab23 (patch) | |
tree | c06793649eddaff22e7363bd97ea70ed2b069950 /src/dht/gnunet-service-dht_neighbours.h | |
parent | e83f3d39b93b4a1aa721c6de33a9c1f04c82896d (diff) | |
download | gnunet-4f3f80d05ac7101b8049c352d70abe97bc81ab23.tar.gz gnunet-4f3f80d05ac7101b8049c352d70abe97bc81ab23.zip |
making some files compile
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.h')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.h b/src/dht/gnunet-service-dht_neighbours.h index 70723deac..e679b4162 100644 --- a/src/dht/gnunet-service-dht_neighbours.h +++ b/src/dht/gnunet-service-dht_neighbours.h | |||
@@ -27,6 +27,9 @@ | |||
27 | #ifndef GNUNET_SERVICE_DHT_NEIGHBOURS_H | 27 | #ifndef GNUNET_SERVICE_DHT_NEIGHBOURS_H |
28 | #define GNUNET_SERVICE_DHT_NEIGHBOURS_H | 28 | #define GNUNET_SERVICE_DHT_NEIGHBOURS_H |
29 | 29 | ||
30 | #include "gnunet_util_lib.h" | ||
31 | #include "gnunet_block_lib.h" | ||
32 | #include "gnunet_dht_service.h" | ||
30 | 33 | ||
31 | /** | 34 | /** |
32 | * Perform a PUT operation. Forwards the given request to other | 35 | * Perform a PUT operation. Forwards the given request to other |
@@ -51,7 +54,7 @@ void | |||
51 | GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | 54 | GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, |
52 | enum GNUNET_DHT_RouteOption options, | 55 | enum GNUNET_DHT_RouteOption options, |
53 | uint32_t desired_replication_level, | 56 | uint32_t desired_replication_level, |
54 | GNUNET_TIME_Absolute expiration_time, | 57 | struct GNUNET_TIME_Absolute expiration_time, |
55 | uint32_t hop_count, | 58 | uint32_t hop_count, |
56 | struct GNUNET_CONTAINER_BloomFilter *bf, | 59 | struct GNUNET_CONTAINER_BloomFilter *bf, |
57 | const GNUNET_HashCode *key, | 60 | const GNUNET_HashCode *key, |
@@ -108,9 +111,9 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, | |||
108 | * @param data_size number of bytes in data | 111 | * @param data_size number of bytes in data |
109 | */ | 112 | */ |
110 | void | 113 | void |
111 | GDS_NEIGHBOURS_handle_reply (const GNUNET_PeerIdentity *target, | 114 | GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target, |
112 | enum GNUNET_BLOCK_Type type, | 115 | enum GNUNET_BLOCK_Type type, |
113 | GNUNET_TIME_Absolute expiration_time, | 116 | struct GNUNET_TIME_Absolute expiration_time, |
114 | const GNUNET_HashCode *key, | 117 | const GNUNET_HashCode *key, |
115 | unsigned int put_path_length, | 118 | unsigned int put_path_length, |
116 | struct GNUNET_PeerIdentity *put_path, | 119 | struct GNUNET_PeerIdentity *put_path, |
@@ -122,10 +125,13 @@ GDS_NEIGHBOURS_handle_reply (const GNUNET_PeerIdentity *target, | |||
122 | 125 | ||
123 | /** | 126 | /** |
124 | * Initialize neighbours subsystem. | 127 | * Initialize neighbours subsystem. |
128 | * | ||
129 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | ||
125 | */ | 130 | */ |
126 | void | 131 | int |
127 | GDS_NEIGHBOURS_init (void); | 132 | GDS_NEIGHBOURS_init (void); |
128 | 133 | ||
134 | |||
129 | /** | 135 | /** |
130 | * Shutdown neighbours subsystem. | 136 | * Shutdown neighbours subsystem. |
131 | */ | 137 | */ |