diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-03 15:07:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-03 15:07:09 +0200 |
commit | 18a1d4ec5085690d16345a52f3e75d059c834195 (patch) | |
tree | eddcbab91006a80cfa604c802bb1fccdaae1103d /src/include | |
parent | 2e619a454b7c78aa5f592debd6c8a31e7d7c1143 (diff) | |
download | gnunet-18a1d4ec5085690d16345a52f3e75d059c834195.tar.gz gnunet-18a1d4ec5085690d16345a52f3e75d059c834195.zip |
proper datacache expiration by proximity first
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_datacache_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_datacache_plugin.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h index 066b02ca9..05ac779d6 100644 --- a/src/include/gnunet_datacache_lib.h +++ b/src/include/gnunet_datacache_lib.h | |||
@@ -105,7 +105,7 @@ typedef int | |||
105 | * | 105 | * |
106 | * @param h handle to the datacache | 106 | * @param h handle to the datacache |
107 | * @param key key to store data under | 107 | * @param key key to store data under |
108 | * @param am_closest am I the closest peer? | 108 | * @param how close is @a key to our pid? |
109 | * @param data_size number of bytes in @a data | 109 | * @param data_size number of bytes in @a data |
110 | * @param data data to store | 110 | * @param data data to store |
111 | * @param type type of the value | 111 | * @param type type of the value |
@@ -117,7 +117,7 @@ typedef int | |||
117 | int | 117 | int |
118 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | 118 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, |
119 | const struct GNUNET_HashCode *key, | 119 | const struct GNUNET_HashCode *key, |
120 | int am_closest, | 120 | uint32_t xor_distance, |
121 | size_t data_size, | 121 | size_t data_size, |
122 | const char *data, | 122 | const char *data, |
123 | enum GNUNET_BLOCK_Type type, | 123 | enum GNUNET_BLOCK_Type type, |
diff --git a/src/include/gnunet_datacache_plugin.h b/src/include/gnunet_datacache_plugin.h index 9746b6493..726108c64 100644 --- a/src/include/gnunet_datacache_plugin.h +++ b/src/include/gnunet_datacache_plugin.h | |||
@@ -109,7 +109,7 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
109 | * | 109 | * |
110 | * @param cls closure (internal context for the plugin) | 110 | * @param cls closure (internal context for the plugin) |
111 | * @param key key to store the value under | 111 | * @param key key to store the value under |
112 | * @param am_closest are we the closest peer? | 112 | * @param xor_distance how close is @a key to our PID? |
113 | * @param size number of bytes in @a data | 113 | * @param size number of bytes in @a data |
114 | * @param data data to store | 114 | * @param data data to store |
115 | * @param type type of the value | 115 | * @param type type of the value |
@@ -120,7 +120,7 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
120 | */ | 120 | */ |
121 | ssize_t (*put) (void *cls, | 121 | ssize_t (*put) (void *cls, |
122 | const struct GNUNET_HashCode *key, | 122 | const struct GNUNET_HashCode *key, |
123 | int am_closest, | 123 | uint32_t xor_distance, |
124 | size_t size, | 124 | size_t size, |
125 | const char *data, | 125 | const char *data, |
126 | enum GNUNET_BLOCK_Type type, | 126 | enum GNUNET_BLOCK_Type type, |