diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-04-03 13:47:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-04-03 13:47:56 +0000 |
commit | 8c23a185ee8d3c16c5552668dced851f82986041 (patch) | |
tree | 83f59d2190ffadcdc5643ba36578b2c6766b0e42 /src/fs/test_fs_unindex.c | |
parent | 1888cd7da7ae5e2c32faf66d3bef47ac7d225b35 (diff) | |
download | gnunet-8c23a185ee8d3c16c5552668dced851f82986041.tar.gz gnunet-8c23a185ee8d3c16c5552668dced851f82986041.zip |
changing datastore API to support replication level --- not fully implemented --- and adding GNUNET_FS_BlockOptions struct to replace prio/anonymity/expiration+replication args
Diffstat (limited to 'src/fs/test_fs_unindex.c')
-rw-r--r-- | src/fs/test_fs_unindex.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c index 82d4cdcf7..99611a6c8 100644 --- a/src/fs/test_fs_unindex.c +++ b/src/fs/test_fs_unindex.c | |||
@@ -233,6 +233,7 @@ run (void *cls, | |||
233 | struct GNUNET_FS_Uri *kuri; | 233 | struct GNUNET_FS_Uri *kuri; |
234 | struct GNUNET_FS_FileInformation *fi; | 234 | struct GNUNET_FS_FileInformation *fi; |
235 | size_t i; | 235 | size_t i; |
236 | struct GNUNET_FS_BlockOptions bo; | ||
236 | 237 | ||
237 | setup_peer (&p1, "test_fs_unindex_data.conf"); | 238 | setup_peer (&p1, "test_fs_unindex_data.conf"); |
238 | fn = GNUNET_DISK_mktemp ("gnunet-unindex-test-dst"); | 239 | fn = GNUNET_DISK_mktemp ("gnunet-unindex-test-dst"); |
@@ -254,15 +255,17 @@ run (void *cls, | |||
254 | GNUNET_free (buf); | 255 | GNUNET_free (buf); |
255 | meta = GNUNET_CONTAINER_meta_data_create (); | 256 | meta = GNUNET_CONTAINER_meta_data_create (); |
256 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 257 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
258 | bo.content_priority = 42; | ||
259 | bo.anonymity_level = 1; | ||
260 | bo.replication_level = 0; | ||
261 | bo.expiration_time = GNUNET_TIME_relative_to_absolute (LIFETIME); | ||
257 | fi = GNUNET_FS_file_information_create_from_file (fs, | 262 | fi = GNUNET_FS_file_information_create_from_file (fs, |
258 | "publish-context", | 263 | "publish-context", |
259 | fn, | 264 | fn, |
260 | kuri, | 265 | kuri, |
261 | meta, | 266 | meta, |
262 | GNUNET_YES, | 267 | GNUNET_YES, |
263 | 1, | 268 | &bo); |
264 | 42, | ||
265 | GNUNET_TIME_relative_to_absolute (LIFETIME)); | ||
266 | GNUNET_FS_uri_destroy (kuri); | 269 | GNUNET_FS_uri_destroy (kuri); |
267 | GNUNET_CONTAINER_meta_data_destroy (meta); | 270 | GNUNET_CONTAINER_meta_data_destroy (meta); |
268 | GNUNET_assert (NULL != fi); | 271 | GNUNET_assert (NULL != fi); |