diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-01 11:25:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-01 11:25:18 +0000 |
commit | 9ad7467ccbfd92fb30881579344ffb3cc5ff3584 (patch) | |
tree | 42d387ca5ac9bb15fe0415412539ac1abcdc69bc /src/fs/fs.h | |
parent | 02f5d87d763fd185fcc27c5911346e951b11e2e3 (diff) | |
download | gnunet-9ad7467ccbfd92fb30881579344ffb3cc5ff3584.tar.gz gnunet-9ad7467ccbfd92fb30881579344ffb3cc5ff3584.zip |
search stuff
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index 9441b76e0..3c111f33e 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -758,6 +758,19 @@ GNUNET_FS_unindex_sync_ (struct GNUNET_FS_UnindexContext *uc); | |||
758 | 758 | ||
759 | 759 | ||
760 | /** | 760 | /** |
761 | * Synchronize this search struct with its mirror | ||
762 | * on disk. Note that all internal FS-operations that change | ||
763 | * publishing structs should already call "sync" internally, | ||
764 | * so this function is likely not useful for clients. | ||
765 | * | ||
766 | * @param sc the struct to sync | ||
767 | */ | ||
768 | void | ||
769 | GNUNET_FS_search_sync_ (struct GNUNET_FS_SearchContext *sc); | ||
770 | |||
771 | |||
772 | |||
773 | /** | ||
761 | * Master context for most FS operations. | 774 | * Master context for most FS operations. |
762 | */ | 775 | */ |
763 | struct GNUNET_FS_Handle | 776 | struct GNUNET_FS_Handle |
@@ -1223,6 +1236,11 @@ struct GNUNET_FS_SearchContext | |||
1223 | void *client_info; | 1236 | void *client_info; |
1224 | 1237 | ||
1225 | /** | 1238 | /** |
1239 | * Name of the file on disk we use for persistence. | ||
1240 | */ | ||
1241 | char *serialization; | ||
1242 | |||
1243 | /** | ||
1226 | * Map that contains a "struct SearchResult" for each result that | 1244 | * Map that contains a "struct SearchResult" for each result that |
1227 | * was found in the search. The key for each entry is the XOR of | 1245 | * was found in the search. The key for each entry is the XOR of |
1228 | * the key and query in the CHK URI (as a unique identifier for the | 1246 | * the key and query in the CHK URI (as a unique identifier for the |