aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_indexing.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/fs/gnunet-service-fs_indexing.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/fs/gnunet-service-fs_indexing.h')
-rw-r--r--src/fs/gnunet-service-fs_indexing.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.h b/src/fs/gnunet-service-fs_indexing.h
index 8b861e3f7..331c51105 100644
--- a/src/fs/gnunet-service-fs_indexing.h
+++ b/src/fs/gnunet-service-fs_indexing.h
@@ -47,6 +47,7 @@
47 * @param type type of the content 47 * @param type type of the content
48 * @param priority priority of the content 48 * @param priority priority of the content
49 * @param anonymity anonymity-level for the content 49 * @param anonymity anonymity-level for the content
50 * @param replication replication-level for the content
50 * @param expiration expiration time for the content 51 * @param expiration expiration time for the content
51 * @param uid unique identifier for the datum; 52 * @param uid unique identifier for the datum;
52 * maybe 0 if no unique identifier is available 53 * maybe 0 if no unique identifier is available
@@ -55,9 +56,13 @@
55 * @return #GNUNET_OK on success 56 * @return #GNUNET_OK on success
56 */ 57 */
57int 58int
58GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, uint32_t size, 59GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode *key,
59 const void *data, enum GNUNET_BLOCK_Type type, 60 uint32_t size,
60 uint32_t priority, uint32_t anonymity, 61 const void *data,
62 enum GNUNET_BLOCK_Type type,
63 uint32_t priority,
64 uint32_t anonymity,
65 uint32_t replication,
61 struct GNUNET_TIME_Absolute expiration, 66 struct GNUNET_TIME_Absolute expiration,
62 uint64_t uid, 67 uint64_t uid,
63 GNUNET_DATASTORE_DatumProcessor cont, 68 GNUNET_DATASTORE_DatumProcessor cont,