aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r--src/datacache/plugin_datacache_sqlite.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index e8ef5cd09..7595211c1 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -86,6 +86,7 @@ sq_prepare (sqlite3 * dbh, const char *zSql, /* SQL statement, UTF-8 encoded
86/** 86/**
87 * Store an item in the datastore. 87 * Store an item in the datastore.
88 * 88 *
89 * @param cls closure (our "struct Plugin")
89 * @param key key to store data under 90 * @param key key to store data under
90 * @param size number of bytes in data 91 * @param size number of bytes in data
91 * @param data data to store 92 * @param data data to store
@@ -155,9 +156,11 @@ sqlite_plugin_put (void *cls,
155 * Iterate over the results for a particular key 156 * Iterate over the results for a particular key
156 * in the datastore. 157 * in the datastore.
157 * 158 *
159 * @param cls closure (our "struct Plugin")
158 * @param key 160 * @param key
159 * @param type entries of which type are relevant? 161 * @param type entries of which type are relevant?
160 * @param iter maybe NULL (to just count) 162 * @param iter maybe NULL (to just count)
163 * @param iter_cls closure for iter
161 * @return the number of results found 164 * @return the number of results found
162 */ 165 */
163static unsigned int 166static unsigned int
@@ -259,6 +262,7 @@ sqlite_plugin_get (void *cls,
259 * Delete the entry with the lowest expiration value 262 * Delete the entry with the lowest expiration value
260 * from the datacache right now. 263 * from the datacache right now.
261 * 264 *
265 * @param cls closure (our "struct Plugin")
262 * @return GNUNET_OK on success, GNUNET_SYSERR on error 266 * @return GNUNET_OK on success, GNUNET_SYSERR on error
263 */ 267 */
264static int 268static int
@@ -337,6 +341,9 @@ sqlite_plugin_del (void *cls)
337 341
338/** 342/**
339 * Entry point for the plugin. 343 * Entry point for the plugin.
344 *
345 * @param cls closure (the "struct GNUNET_DATACACHE_PluginEnvironmnet")
346 * @return the plugin's closure (our "struct Plugin")
340 */ 347 */
341void * 348void *
342libgnunet_plugin_datacache_sqlite_init (void *cls) 349libgnunet_plugin_datacache_sqlite_init (void *cls)
@@ -398,6 +405,9 @@ libgnunet_plugin_datacache_sqlite_init (void *cls)
398 405
399/** 406/**
400 * Exit point from the plugin. 407 * Exit point from the plugin.
408 *
409 * @param cls closure (our "struct Plugin")
410 * @return NULL
401 */ 411 */
402void * 412void *
403libgnunet_plugin_datacache_sqlite_done (void *cls) 413libgnunet_plugin_datacache_sqlite_done (void *cls)