aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download_indexed.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-03 13:47:56 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-03 13:47:56 +0000
commit8c23a185ee8d3c16c5552668dced851f82986041 (patch)
tree83f59d2190ffadcdc5643ba36578b2c6766b0e42 /src/fs/test_fs_download_indexed.c
parent1888cd7da7ae5e2c32faf66d3bef47ac7d225b35 (diff)
downloadgnunet-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_download_indexed.c')
-rw-r--r--src/fs/test_fs_download_indexed.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fs/test_fs_download_indexed.c b/src/fs/test_fs_download_indexed.c
index 33ca42a16..afb544f51 100644
--- a/src/fs/test_fs_download_indexed.c
+++ b/src/fs/test_fs_download_indexed.c
@@ -294,6 +294,7 @@ run (void *cls,
294 struct GNUNET_CONTAINER_MetaData *meta; 294 struct GNUNET_CONTAINER_MetaData *meta;
295 struct GNUNET_FS_Uri *kuri; 295 struct GNUNET_FS_Uri *kuri;
296 struct GNUNET_FS_FileInformation *fi; 296 struct GNUNET_FS_FileInformation *fi;
297 struct GNUNET_FS_BlockOptions bo;
297 size_t i; 298 size_t i;
298 299
299 setup_peer (&p1, "test_fs_download_data.conf"); 300 setup_peer (&p1, "test_fs_download_data.conf");
@@ -317,15 +318,17 @@ run (void *cls,
317 GNUNET_free (buf); 318 GNUNET_free (buf);
318 meta = GNUNET_CONTAINER_meta_data_create (); 319 meta = GNUNET_CONTAINER_meta_data_create ();
319 kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); 320 kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords);
321 bo.content_priority = 42;
322 bo.anonymity_level = 1;
323 bo.replication_level = 0;
324 bo.expiration_time = GNUNET_TIME_relative_to_absolute (LIFETIME);
320 fi = GNUNET_FS_file_information_create_from_file (fs, 325 fi = GNUNET_FS_file_information_create_from_file (fs,
321 "publish-context", 326 "publish-context",
322 fn1, 327 fn1,
323 kuri, 328 kuri,
324 meta, 329 meta,
325 GNUNET_YES, 330 GNUNET_YES,
326 1, 331 &bo);
327 42,
328 GNUNET_TIME_relative_to_absolute (LIFETIME));
329 GNUNET_FS_uri_destroy (kuri); 332 GNUNET_FS_uri_destroy (kuri);
330 GNUNET_CONTAINER_meta_data_destroy (meta); 333 GNUNET_CONTAINER_meta_data_destroy (meta);
331 GNUNET_assert (NULL != fi); 334 GNUNET_assert (NULL != fi);