diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-04 11:14:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-04 11:14:25 +0000 |
commit | 6276a671135e01b119f198d0ae3092bfeb14903e (patch) | |
tree | be184253d3c14e2b9ea6b2f4dd335b4c935d68b1 /src/fs/fs.h | |
parent | 6aefa4ac85435c8e7afb86e4e6daef77da69709a (diff) | |
download | gnunet-6276a671135e01b119f198d0ae3092bfeb14903e.tar.gz gnunet-6276a671135e01b119f198d0ae3092bfeb14903e.zip |
calling sync, cleaning up files
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index 1d3498a7c..52fbee4c1 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -621,6 +621,11 @@ struct GNUNET_FS_SearchResult | |||
621 | char *serialization; | 621 | char *serialization; |
622 | 622 | ||
623 | /** | 623 | /** |
624 | * Key for the search result | ||
625 | */ | ||
626 | GNUNET_HashCode key; | ||
627 | |||
628 | /** | ||
624 | * ID of the task that will clean up the probe_ctx should it not | 629 | * ID of the task that will clean up the probe_ctx should it not |
625 | * complete on time (and that will need to be cancelled if we clean | 630 | * complete on time (and that will need to be cancelled if we clean |
626 | * up the search result before then). | 631 | * up the search result before then). |
@@ -895,6 +900,19 @@ GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, | |||
895 | 900 | ||
896 | 901 | ||
897 | /** | 902 | /** |
903 | * Remove serialization/deserialization directory from disk. | ||
904 | * | ||
905 | * @param h master context | ||
906 | * @param ext component of the path | ||
907 | * @param uni unique name of parent | ||
908 | */ | ||
909 | void | ||
910 | GNUNET_FS_remove_sync_dir_ (struct GNUNET_FS_Handle *h, | ||
911 | const char *ext, | ||
912 | const char *uni); | ||
913 | |||
914 | |||
915 | /** | ||
898 | * Synchronize this file-information struct with its mirror | 916 | * Synchronize this file-information struct with its mirror |
899 | * on disk. Note that all internal FS-operations that change | 917 | * on disk. Note that all internal FS-operations that change |
900 | * file information data should already call "sync" internally, | 918 | * file information data should already call "sync" internally, |
@@ -944,12 +962,10 @@ GNUNET_FS_search_sync_ (struct GNUNET_FS_SearchContext *sc); | |||
944 | * publishing structs should already call "sync" internally, | 962 | * publishing structs should already call "sync" internally, |
945 | * so this function is likely not useful for clients. | 963 | * so this function is likely not useful for clients. |
946 | * | 964 | * |
947 | * @param key key for the search result | ||
948 | * @param sr the struct to sync | 965 | * @param sr the struct to sync |
949 | */ | 966 | */ |
950 | void | 967 | void |
951 | GNUNET_FS_search_result_sync_ (const GNUNET_HashCode *key, | 968 | GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr); |
952 | struct GNUNET_FS_SearchResult *sr); | ||
953 | 969 | ||
954 | /** | 970 | /** |
955 | * Synchronize this download struct with its mirror | 971 | * Synchronize this download struct with its mirror |