diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-08-26 09:13:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-08-26 09:13:06 +0000 |
commit | 85172474808b86fb0b11d1f2a63a88d3741d5ecb (patch) | |
tree | 1e1896d46777a5699dbed2f1054af1be14f4c105 /src/fs/fs_unindex.c | |
parent | fa64f260673f79b831269cebb500fb289439eb00 (diff) | |
download | gnunet-85172474808b86fb0b11d1f2a63a88d3741d5ecb.tar.gz gnunet-85172474808b86fb0b11d1f2a63a88d3741d5ecb.zip |
hxing
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r-- | src/fs/fs_unindex.c | 61 |
1 files changed, 50 insertions, 11 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index ef63e798e..8fb13a644 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -19,25 +19,62 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file applications/fs/ecrs/unindex.c | 22 | * @file fs/fs_unindex.c |
23 | * @author Krista Bennett | 23 | * @author Krista Bennett |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * | 25 | * @brief Unindex file. |
26 | * Unindex file. | ||
27 | * | 26 | * |
28 | * TODO: | 27 | * TODO: |
29 | * - code cleanup (share more with upload.c) | 28 | * - code cleanup (share more with upload.c) |
30 | */ | 29 | */ |
31 | 30 | ||
32 | #include "platform.h" | 31 | #include "platform.h" |
33 | #include "gnunet_protocols.h" | 32 | #include "gnunet_fs_service.h" |
34 | #include "gnunet_ecrs_lib.h" | ||
35 | #include "gnunet_fs_lib.h" | ||
36 | #include "gnunet_getoption_lib.h" | ||
37 | #include "ecrs_core.h" | ||
38 | #include "ecrs.h" | ||
39 | #include "fs.h" | 33 | #include "fs.h" |
40 | #include "tree.h" | 34 | |
35 | /** | ||
36 | * Iterate over all indexed files. | ||
37 | * | ||
38 | * @param h handle to the file sharing subsystem | ||
39 | * @param iterator function to call on each indexed file | ||
40 | * @param iterator_cls closure for iterator | ||
41 | */ | ||
42 | void | ||
43 | GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, | ||
44 | GNUNET_FS_IndexedFileProcessor iterator, | ||
45 | void *iterator_cls) | ||
46 | { | ||
47 | } | ||
48 | |||
49 | |||
50 | /** | ||
51 | * Unindex a file. | ||
52 | * | ||
53 | * @param h handle to the file sharing subsystem | ||
54 | * @param filename file to unindex | ||
55 | * @return NULL on error, otherwise handle | ||
56 | */ | ||
57 | struct GNUNET_FS_UnindexContext * | ||
58 | GNUNET_FS_unindex (struct GNUNET_FS_Handle *h, | ||
59 | const char *filename) | ||
60 | { | ||
61 | return NULL; | ||
62 | } | ||
63 | |||
64 | |||
65 | /** | ||
66 | * Clean up after completion of an unindex operation. | ||
67 | * | ||
68 | * @param uc handle | ||
69 | */ | ||
70 | void | ||
71 | GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc) | ||
72 | { | ||
73 | } | ||
74 | |||
75 | |||
76 | |||
77 | #if 0 | ||
41 | 78 | ||
42 | #define STRICT_CHECKS GNUNET_NO | 79 | #define STRICT_CHECKS GNUNET_NO |
43 | 80 | ||
@@ -391,4 +428,6 @@ FAILURE: | |||
391 | return GNUNET_SYSERR; | 428 | return GNUNET_SYSERR; |
392 | } | 429 | } |
393 | 430 | ||
394 | /* end of unindex.c */ | 431 | #endif |
432 | |||
433 | /* end of fs_unindex.c */ | ||