From 8c23a185ee8d3c16c5552668dced851f82986041 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 3 Apr 2011 13:47:56 +0000 Subject: changing datastore API to support replication level --- not fully implemented --- and adding GNUNET_FS_BlockOptions struct to replace prio/anonymity/expiration+replication args --- src/fs/test_fs_download_indexed.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/fs/test_fs_download_indexed.c') 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, struct GNUNET_CONTAINER_MetaData *meta; struct GNUNET_FS_Uri *kuri; struct GNUNET_FS_FileInformation *fi; + struct GNUNET_FS_BlockOptions bo; size_t i; setup_peer (&p1, "test_fs_download_data.conf"); @@ -317,15 +318,17 @@ run (void *cls, GNUNET_free (buf); meta = GNUNET_CONTAINER_meta_data_create (); kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); + bo.content_priority = 42; + bo.anonymity_level = 1; + bo.replication_level = 0; + bo.expiration_time = GNUNET_TIME_relative_to_absolute (LIFETIME); fi = GNUNET_FS_file_information_create_from_file (fs, "publish-context", fn1, kuri, meta, GNUNET_YES, - 1, - 42, - GNUNET_TIME_relative_to_absolute (LIFETIME)); + &bo); GNUNET_FS_uri_destroy (kuri); GNUNET_CONTAINER_meta_data_destroy (meta); GNUNET_assert (NULL != fi); -- cgit v1.2.3