adding basic declarations for datastore implementation
[oweals/gnunet.git] / src / include / gnunet_datastore_service.h
index b20c6b100edda8685d1fd2a5a50566c323f6dbac..ed0fd085623dded301127fd762d2c90ca19c73f1 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef GNUNET_DATASTORE_SERVICE_H
 #define GNUNET_DATASTORE_SERVICE_H
 
-#include "gnunet_core.h"
+#include "gnunet_util_lib.h"
 
 #ifdef __cplusplus
 extern "C"
@@ -93,9 +93,12 @@ struct GNUNET_DATASTORE_Handle *GNUNET_DATASTORE_connect (struct
 /**
  * Disconnect from the datastore service (and free
  * associated resources).
+ *
  * @param h handle to the datastore
+ * @param drop set to GNUNET_YES to delete all data in datastore (!)
  */
-void GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h);
+void GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h,
+                                 int drop);
 
 
 /**
@@ -125,7 +128,7 @@ GNUNET_DATASTORE_put (struct GNUNET_DATASTORE_Handle *h,
                       const GNUNET_HashCode * key,
                       uint32_t size,
                       const void *data,
-                      unit32_t type,
+                      uint32_t type,
                       uint32_t priority,
                       uint32_t anonymity,
                       struct GNUNET_TIME_Absolute expiration);