- fi1 = GNUNET_FS_file_information_create_from_file ("file_information-context1",
- fn1,
- kuri,
- meta,
- GNUNET_YES,
- 1,
- 42,
- GNUNET_TIME_relative_to_absolute (LIFETIME));
- fi2 = GNUNET_FS_file_information_create_from_file ("file_information-context2",
- fn2,
- kuri,
- meta,
- GNUNET_YES,
- 1,
- 42,
- GNUNET_TIME_relative_to_absolute (LIFETIME));
- fidir = GNUNET_FS_file_information_create_empty_directory ("file_information-context-dir",
- kuri,
- meta,
- 1,
- 42,
- GNUNET_TIME_relative_to_absolute (LIFETIME));
+ bo.content_priority = 42;
+ bo.anonymity_level = 1;
+ bo.replication_level = 0;
+ bo.expiration_time = GNUNET_TIME_relative_to_absolute (LIFETIME);
+ fi1 =
+ GNUNET_FS_file_information_create_from_file (fs,
+ "file_information-context1",
+ fn1, kuri, meta, GNUNET_YES,
+ &bo);
+ GNUNET_assert (fi1 != NULL);
+ fi2 =
+ GNUNET_FS_file_information_create_from_file (fs,
+ "file_information-context2",
+ fn2, kuri, meta, GNUNET_YES,
+ &bo);
+ GNUNET_assert (fi2 != NULL);
+ fidir =
+ GNUNET_FS_file_information_create_empty_directory (fs,
+ "file_information-context-dir",
+ kuri, meta, &bo, NULL);