aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_datastore_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_datastore_service.h')
-rw-r--r--src/include/gnunet_datastore_service.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h
index b20c6b100..ed0fd0856 100644
--- a/src/include/gnunet_datastore_service.h
+++ b/src/include/gnunet_datastore_service.h
@@ -31,7 +31,7 @@
31#ifndef GNUNET_DATASTORE_SERVICE_H 31#ifndef GNUNET_DATASTORE_SERVICE_H
32#define GNUNET_DATASTORE_SERVICE_H 32#define GNUNET_DATASTORE_SERVICE_H
33 33
34#include "gnunet_core.h" 34#include "gnunet_util_lib.h"
35 35
36#ifdef __cplusplus 36#ifdef __cplusplus
37extern "C" 37extern "C"
@@ -93,9 +93,12 @@ struct GNUNET_DATASTORE_Handle *GNUNET_DATASTORE_connect (struct
93/** 93/**
94 * Disconnect from the datastore service (and free 94 * Disconnect from the datastore service (and free
95 * associated resources). 95 * associated resources).
96 *
96 * @param h handle to the datastore 97 * @param h handle to the datastore
98 * @param drop set to GNUNET_YES to delete all data in datastore (!)
97 */ 99 */
98void GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h); 100void GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h,
101 int drop);
99 102
100 103
101/** 104/**
@@ -125,7 +128,7 @@ GNUNET_DATASTORE_put (struct GNUNET_DATASTORE_Handle *h,
125 const GNUNET_HashCode * key, 128 const GNUNET_HashCode * key,
126 uint32_t size, 129 uint32_t size,
127 const void *data, 130 const void *data,
128 unit32_t type, 131 uint32_t type,
129 uint32_t priority, 132 uint32_t priority,
130 uint32_t anonymity, 133 uint32_t anonymity,
131 struct GNUNET_TIME_Absolute expiration); 134 struct GNUNET_TIME_Absolute expiration);