aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs.c')
-rw-r--r--src/fs/fs.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fs/fs.c b/src/fs/fs.c
index 36eb3e5e1..81250b88c 100644
--- a/src/fs/fs.c
+++ b/src/fs/fs.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010 Christian Grothoff (and other contributing authors) 3 (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -769,17 +769,19 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h,
769 (GNUNET_YES != 769 (GNUNET_YES !=
770 GNUNET_FS_uri_test_chk (ret->chk_uri)) ) ) || 770 GNUNET_FS_uri_test_chk (ret->chk_uri)) ) ) ||
771 (GNUNET_OK != 771 (GNUNET_OK !=
772 GNUNET_BIO_read_int64 (rh, &ret->expirationTime.abs_value)) ||
773 (GNUNET_OK !=
774 read_start_time (rh, &ret->start_time)) || 772 read_start_time (rh, &ret->start_time)) ||
775 (GNUNET_OK != 773 (GNUNET_OK !=
776 GNUNET_BIO_read_string (rh, "emsg", &ret->emsg, 16*1024)) || 774 GNUNET_BIO_read_string (rh, "emsg", &ret->emsg, 16*1024)) ||
777 (GNUNET_OK != 775 (GNUNET_OK !=
778 GNUNET_BIO_read_string (rh, "fn", &ret->filename, 16*1024)) || 776 GNUNET_BIO_read_string (rh, "fn", &ret->filename, 16*1024)) ||
779 (GNUNET_OK != 777 (GNUNET_OK !=
780 GNUNET_BIO_read_int32 (rh, &ret->anonymity)) || 778 GNUNET_BIO_read_int64 (rh, &ret->bo.expiration_time.abs_value)) ||
779 (GNUNET_OK !=
780 GNUNET_BIO_read_int32 (rh, &ret->bo.anonymity_level)) ||
781 (GNUNET_OK !=
782 GNUNET_BIO_read_int32 (rh, &ret->bo.content_priority)) ||
781 (GNUNET_OK != 783 (GNUNET_OK !=
782 GNUNET_BIO_read_int32 (rh, &ret->priority)) ) 784 GNUNET_BIO_read_int32 (rh, &ret->bo.replication_level)) )
783 { 785 {
784 GNUNET_break (0); 786 GNUNET_break (0);
785 goto cleanup; 787 goto cleanup;
@@ -1181,17 +1183,19 @@ GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation * fi)
1181 (GNUNET_OK != 1183 (GNUNET_OK !=
1182 GNUNET_BIO_write_string (wh, chks)) || 1184 GNUNET_BIO_write_string (wh, chks)) ||
1183 (GNUNET_OK != 1185 (GNUNET_OK !=
1184 GNUNET_BIO_write_int64 (wh, fi->expirationTime.abs_value)) ||
1185 (GNUNET_OK !=
1186 write_start_time (wh, fi->start_time)) || 1186 write_start_time (wh, fi->start_time)) ||
1187 (GNUNET_OK != 1187 (GNUNET_OK !=
1188 GNUNET_BIO_write_string (wh, fi->emsg)) || 1188 GNUNET_BIO_write_string (wh, fi->emsg)) ||
1189 (GNUNET_OK != 1189 (GNUNET_OK !=
1190 GNUNET_BIO_write_string (wh, fi->filename)) || 1190 GNUNET_BIO_write_string (wh, fi->filename)) ||
1191 (GNUNET_OK != 1191 (GNUNET_OK !=
1192 GNUNET_BIO_write_int32 (wh, fi->anonymity)) || 1192 GNUNET_BIO_write_int64 (wh, fi->bo.expiration_time.abs_value)) ||
1193 (GNUNET_OK !=
1194 GNUNET_BIO_write_int32 (wh, fi->bo.anonymity_level)) ||
1195 (GNUNET_OK !=
1196 GNUNET_BIO_write_int32 (wh, fi->bo.content_priority)) ||
1193 (GNUNET_OK != 1197 (GNUNET_OK !=
1194 GNUNET_BIO_write_int32 (wh, fi->priority)) ) 1198 GNUNET_BIO_write_int32 (wh, fi->bo.replication_level)) )
1195 { 1199 {
1196 GNUNET_break (0); 1200 GNUNET_break (0);
1197 goto cleanup; 1201 goto cleanup;
@@ -1340,10 +1344,8 @@ find_file_position (struct GNUNET_FS_FileInformation *pos,
1340 * @param length length of the file or directory 1344 * @param length length of the file or directory
1341 * @param meta metadata for the file or directory (can be modified) 1345 * @param meta metadata for the file or directory (can be modified)
1342 * @param uri pointer to the keywords that will be used for this entry (can be modified) 1346 * @param uri pointer to the keywords that will be used for this entry (can be modified)
1343 * @param anonymity pointer to selected anonymity level (can be modified) 1347 * @param bo block options (can be modified)
1344 * @param priority pointer to selected priority (can be modified)
1345 * @param do_index should we index? 1348 * @param do_index should we index?
1346 * @param expirationTime pointer to selected expiration time (can be modified)
1347 * @param client_info pointer to client context set upon creation (can be modified) 1349 * @param client_info pointer to client context set upon creation (can be modified)
1348 * @return GNUNET_OK to continue (always) 1350 * @return GNUNET_OK to continue (always)
1349 */ 1351 */
@@ -1353,10 +1355,8 @@ fip_signal_resume(void *cls,
1353 uint64_t length, 1355 uint64_t length,
1354 struct GNUNET_CONTAINER_MetaData *meta, 1356 struct GNUNET_CONTAINER_MetaData *meta,
1355 struct GNUNET_FS_Uri **uri, 1357 struct GNUNET_FS_Uri **uri,
1356 uint32_t *anonymity, 1358 struct GNUNET_FS_BlockOptions *bo,
1357 uint32_t *priority,
1358 int *do_index, 1359 int *do_index,
1359 struct GNUNET_TIME_Absolute *expirationTime,
1360 void **client_info) 1360 void **client_info)
1361{ 1361{
1362 struct GNUNET_FS_PublishContext *sc = cls; 1362 struct GNUNET_FS_PublishContext *sc = cls;