aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/plugin_peerstore_sqlite.c
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-07-24 12:44:24 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-07-24 12:44:24 +0000
commitc057bd312c783e0a2f3783dfd888a66f490b0a30 (patch)
treeff87b7bf7189a723045d7c851d2d383b786724ec /src/peerstore/plugin_peerstore_sqlite.c
parentf2594744c121f45f3b36867b051220e7186d6f9b (diff)
downloadgnunet-c057bd312c783e0a2f3783dfd888a66f490b0a30.tar.gz
gnunet-c057bd312c783e0a2f3783dfd888a66f490b0a30.zip
peerstore: doxygen
Diffstat (limited to 'src/peerstore/plugin_peerstore_sqlite.c')
-rw-r--r--src/peerstore/plugin_peerstore_sqlite.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/peerstore/plugin_peerstore_sqlite.c b/src/peerstore/plugin_peerstore_sqlite.c
index 0a0df4b0c..2726eef3d 100644
--- a/src/peerstore/plugin_peerstore_sqlite.c
+++ b/src/peerstore/plugin_peerstore_sqlite.c
@@ -284,21 +284,24 @@ peerstore_sqlite_iterate_records (void *cls,
284 * One key can store multiple values. 284 * One key can store multiple values.
285 * 285 *
286 * @param cls closure (internal context for the plugin) 286 * @param cls closure (internal context for the plugin)
287 * @param peer peer identity
288 * @param sub_system name of the GNUnet sub system responsible 287 * @param sub_system name of the GNUnet sub system responsible
288 * @param peer peer identity
289 * @param key record key string
289 * @param value value to be stored 290 * @param value value to be stored
290 * @param size size of value to be stored 291 * @param size size of value to be stored
292 * @param expiry absolute time after which the record is (possibly) deleted
293 * @param options options related to the store operation
291 * @return #GNUNET_OK on success, else #GNUNET_SYSERR 294 * @return #GNUNET_OK on success, else #GNUNET_SYSERR
292 */ 295 */
293static int 296static int
294peerstore_sqlite_store_record(void *cls, 297peerstore_sqlite_store_record (void *cls,
295 const char *sub_system, 298 const char *sub_system,
296 const struct GNUNET_PeerIdentity *peer, 299 const struct GNUNET_PeerIdentity *peer,
297 const char *key, 300 const char *key,
298 const void *value, 301 const void *value,
299 size_t size, 302 size_t size,
300 struct GNUNET_TIME_Absolute expiry, 303 struct GNUNET_TIME_Absolute expiry,
301 enum GNUNET_PEERSTORE_StoreOption options) 304 enum GNUNET_PEERSTORE_StoreOption options)
302{ 305{
303 struct Plugin *plugin = cls; 306 struct Plugin *plugin = cls;
304 sqlite3_stmt *stmt = plugin->insert_peerstoredata; 307 sqlite3_stmt *stmt = plugin->insert_peerstoredata;