diff options
Diffstat (limited to 'src/include/gnunet_datacache_plugin.h')
-rw-r--r-- | src/include/gnunet_datacache_plugin.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/include/gnunet_datacache_plugin.h b/src/include/gnunet_datacache_plugin.h index 34bf5f277..e144e155e 100644 --- a/src/include/gnunet_datacache_plugin.h +++ b/src/include/gnunet_datacache_plugin.h | |||
@@ -19,6 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup dht_libs DHT and support libraries | ||
23 | * @{ | ||
24 | * | ||
22 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
23 | * | 26 | * |
24 | * @file | 27 | * @file |
@@ -31,6 +34,7 @@ | |||
31 | #ifndef PLUGIN_DATACACHE_H | 34 | #ifndef PLUGIN_DATACACHE_H |
32 | #define PLUGIN_DATACACHE_H | 35 | #define PLUGIN_DATACACHE_H |
33 | 36 | ||
37 | |||
34 | #include "gnunet_datacache_lib.h" | 38 | #include "gnunet_datacache_lib.h" |
35 | 39 | ||
36 | #ifdef __cplusplus | 40 | #ifdef __cplusplus |
@@ -105,26 +109,14 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
105 | * Store an item in the datastore. | 109 | * Store an item in the datastore. |
106 | * | 110 | * |
107 | * @param cls closure (internal context for the plugin) | 111 | * @param cls closure (internal context for the plugin) |
108 | * @param key key to store the value under | ||
109 | * @param xor_distance how close is @a key to our PID? | 112 | * @param xor_distance how close is @a key to our PID? |
110 | * @param size number of bytes in @a data | 113 | * @param block data to store |
111 | * @param data data to store | ||
112 | * @param type type of the value | ||
113 | * @param discard_time when to discard the value in any case | ||
114 | * @param path_info_len number of entries in @a path_info | ||
115 | * @param path_info a path through the network | ||
116 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise | 114 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise |
117 | */ | 115 | */ |
118 | ssize_t | 116 | ssize_t |
119 | (*put) (void *cls, | 117 | (*put) (void *cls, |
120 | const struct GNUNET_HashCode *key, | ||
121 | uint32_t xor_distance, | 118 | uint32_t xor_distance, |
122 | size_t size, | 119 | const struct GNUNET_DATACACHE_Block *block); |
123 | const char *data, | ||
124 | enum GNUNET_BLOCK_Type type, | ||
125 | struct GNUNET_TIME_Absolute discard_time, | ||
126 | unsigned int path_info_len, | ||
127 | const struct GNUNET_DHT_PathElement *path_info); | ||
128 | 120 | ||
129 | 121 | ||
130 | /** | 122 | /** |
@@ -192,3 +184,5 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
192 | #endif | 184 | #endif |
193 | 185 | ||
194 | /** @} */ /* end of group */ | 186 | /** @} */ /* end of group */ |
187 | |||
188 | /** @} */ /* end of group addition */ | ||