diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-30 18:47:17 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-30 18:47:17 +0200 |
commit | adef29b3ed00afd42669ae35a73951c59f08a41b (patch) | |
tree | c8d6c7f60716c551b587aed7a1efe0d6e756833f /src/datacache/datacache.c | |
parent | f5a18b7466f342ac9624adcdb65f104aef8ecb5e (diff) | |
download | gnunet-adef29b3ed00afd42669ae35a73951c59f08a41b.tar.gz gnunet-adef29b3ed00afd42669ae35a73951c59f08a41b.zip |
add proximity considerations to datacache
Diffstat (limited to 'src/datacache/datacache.c')
-rw-r--r-- | src/datacache/datacache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c index 0646019bd..18a2ed228 100644 --- a/src/datacache/datacache.c +++ b/src/datacache/datacache.c | |||
@@ -260,6 +260,7 @@ GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h) | |||
260 | * | 260 | * |
261 | * @param h handle to the datacache | 261 | * @param h handle to the datacache |
262 | * @param key key to store data under | 262 | * @param key key to store data under |
263 | * @param am_closest are we the closest peer? | ||
263 | * @param data_size number of bytes in @a data | 264 | * @param data_size number of bytes in @a data |
264 | * @param data data to store | 265 | * @param data data to store |
265 | * @param type type of the value | 266 | * @param type type of the value |
@@ -271,6 +272,7 @@ GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h) | |||
271 | int | 272 | int |
272 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | 273 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, |
273 | const struct GNUNET_HashCode *key, | 274 | const struct GNUNET_HashCode *key, |
275 | int am_closest, | ||
274 | size_t data_size, | 276 | size_t data_size, |
275 | const char *data, | 277 | const char *data, |
276 | enum GNUNET_BLOCK_Type type, | 278 | enum GNUNET_BLOCK_Type type, |
@@ -282,6 +284,7 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | |||
282 | 284 | ||
283 | used = h->api->put (h->api->cls, | 285 | used = h->api->put (h->api->cls, |
284 | key, | 286 | key, |
287 | am_closest, | ||
285 | data_size, | 288 | data_size, |
286 | data, | 289 | data, |
287 | type, | 290 | type, |