aboutsummaryrefslogtreecommitdiff
path: root/src/dht/plugin_dhtlog_dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/plugin_dhtlog_dummy.c')
-rw-r--r--src/dht/plugin_dhtlog_dummy.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/dht/plugin_dhtlog_dummy.c b/src/dht/plugin_dhtlog_dummy.c
index 55939ea9c..c90cc424b 100644
--- a/src/dht/plugin_dhtlog_dummy.c
+++ b/src/dht/plugin_dhtlog_dummy.c
@@ -183,6 +183,48 @@ add_route (unsigned long long *sqlqueryuid, unsigned long long queryid,
183 return GNUNET_OK; 183 return GNUNET_OK;
184} 184}
185 185
186
187/*
188 * Records the current topology (number of connections, time, trial)
189 *
190 * @param num_connections how many connections are in the topology
191 *
192 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
193 */
194int
195add_topology (int num_connections)
196{
197 return GNUNET_OK;
198}
199
200/*
201 * Records a connection between two peers in the current topology
202 *
203 * @param first one side of the connection
204 * @param second other side of the connection
205 *
206 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
207 */
208int
209add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second)
210{
211 return GNUNET_OK;
212}
213
214/*
215 * Update dhttests.topology table with total connections information
216 *
217 * @param totalConnections the number of connections
218 *
219 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
220 */
221int
222update_topology (unsigned int connections)
223{
224 return GNUNET_OK;
225}
226
227
186/* 228/*
187 * Provides the dhtlog api 229 * Provides the dhtlog api
188 * 230 *
@@ -206,6 +248,9 @@ libgnunet_plugin_dhtlog_dummy_init (void * cls)
206 plugin->dhtlog_api->insert_node = &add_node; 248 plugin->dhtlog_api->insert_node = &add_node;
207 plugin->dhtlog_api->insert_dhtkey = &add_dhtkey; 249 plugin->dhtlog_api->insert_dhtkey = &add_dhtkey;
208 plugin->dhtlog_api->update_connections = &add_connections; 250 plugin->dhtlog_api->update_connections = &add_connections;
251 plugin->dhtlog_api->insert_topology = &add_topology;
252 plugin->dhtlog_api->update_topology = &update_topology;
253 plugin->dhtlog_api->insert_extended_topology = &add_extended_topology;
209 return NULL; 254 return NULL;
210} 255}
211 256