aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_datastore_service.h
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-03-22 22:17:05 -0500
committerDavid Barksdale <amatus@amat.us>2017-03-22 22:19:13 -0500
commit78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b (patch)
tree1dc23a2f6d78c8026e69181ac90055929d79bba8 /src/include/gnunet_datastore_service.h
parentaa98f144e6db0da5a0a4cad83fe64a80bbab6692 (diff)
downloadgnunet-78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b.tar.gz
gnunet-78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b.zip
[datastore] Return and update replication
This fixes a couple FIXMEs in the datastore code. The replication value is now returned from the datastore and the update function can increase the replication.
Diffstat (limited to 'src/include/gnunet_datastore_service.h')
-rw-r--r--src/include/gnunet_datastore_service.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h
index 830e7da86..f851385c5 100644
--- a/src/include/gnunet_datastore_service.h
+++ b/src/include/gnunet_datastore_service.h
@@ -240,6 +240,7 @@ GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h,
240 * @param type type of the content 240 * @param type type of the content
241 * @param priority priority of the content 241 * @param priority priority of the content
242 * @param anonymity anonymity-level for the content 242 * @param anonymity anonymity-level for the content
243 * @param replication how often should the content be replicated to other peers?
243 * @param expiration expiration time for the content 244 * @param expiration expiration time for the content
244 * @param uid unique identifier for the datum; 245 * @param uid unique identifier for the datum;
245 * maybe 0 if no unique identifier is available 246 * maybe 0 if no unique identifier is available
@@ -252,6 +253,7 @@ typedef void
252 enum GNUNET_BLOCK_Type type, 253 enum GNUNET_BLOCK_Type type,
253 uint32_t priority, 254 uint32_t priority,
254 uint32_t anonymity, 255 uint32_t anonymity,
256 uint32_t replication,
255 struct GNUNET_TIME_Absolute expiration, 257 struct GNUNET_TIME_Absolute expiration,
256 uint64_t uid); 258 uint64_t uid);
257 259