diff options
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r-- | src/include/gnunet_fs_service.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index 45cd1e77e..7c6fc0549 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -1415,6 +1415,42 @@ typedef int (*GNUNET_FS_FileInformationProcessor)(void *cls, | |||
1415 | 1415 | ||
1416 | 1416 | ||
1417 | /** | 1417 | /** |
1418 | * Recover file information structure from disk. | ||
1419 | * | ||
1420 | * @param name filename for the structure on disk | ||
1421 | * @return NULL on error | ||
1422 | */ | ||
1423 | struct GNUNET_FS_FileInformation * | ||
1424 | GNUNET_FS_file_information_recover (const char *name); | ||
1425 | |||
1426 | |||
1427 | /** | ||
1428 | * Obtain the name under which this file information | ||
1429 | * structure is stored on disk. Only works for top-level | ||
1430 | * file information structures. | ||
1431 | * | ||
1432 | * @param s structure to get the filename for | ||
1433 | * @return NULL on error, otherwise filename that | ||
1434 | * can be passed to "GNUNET_FS_file_information_recover" | ||
1435 | * to read this fi-struct from disk. | ||
1436 | */ | ||
1437 | const char * | ||
1438 | GNUNET_FS_file_information_get_id (struct GNUNET_FS_FileInformation *s); | ||
1439 | |||
1440 | |||
1441 | /** | ||
1442 | * Synchronize this file-information struct with its mirror | ||
1443 | * on disk. Note that all internal FS-operations that change | ||
1444 | * file information data should already call "sync" internally, | ||
1445 | * so this function is likely not useful for clients. | ||
1446 | * | ||
1447 | * @param s the struct to sync | ||
1448 | */ | ||
1449 | void | ||
1450 | GNUNET_FS_file_information_sync (struct GNUNET_FS_FileInformation *s); | ||
1451 | |||
1452 | |||
1453 | /** | ||
1418 | * Create an entry for a file in a publish-structure. | 1454 | * Create an entry for a file in a publish-structure. |
1419 | * | 1455 | * |
1420 | * @param filename name of the file or directory to publish | 1456 | * @param filename name of the file or directory to publish |