diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-10-01 12:53:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-10-01 12:53:07 +0000 |
commit | f7fac7f6736df4e350a8b5ed7d9f51782d7e039e (patch) | |
tree | 6eee38f2dbc4de932c22d213dde60cf06992b127 /src/fs/gnunet-service-fs_indexing.h | |
parent | 760f75d2d87f01ca93ebfb349eedbb4224c03c7c (diff) | |
download | gnunet-f7fac7f6736df4e350a8b5ed7d9f51782d7e039e.tar.gz gnunet-f7fac7f6736df4e350a8b5ed7d9f51782d7e039e.zip |
migrating fs to new service API
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.h')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.h | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.h b/src/fs/gnunet-service-fs_indexing.h index a2cc4a800..8b861e3f7 100644 --- a/src/fs/gnunet-service-fs_indexing.h +++ b/src/fs/gnunet-service-fs_indexing.h | |||
@@ -51,8 +51,8 @@ | |||
51 | * @param uid unique identifier for the datum; | 51 | * @param uid unique identifier for the datum; |
52 | * maybe 0 if no unique identifier is available | 52 | * maybe 0 if no unique identifier is available |
53 | * @param cont function to call with the actual block (at most once, on success) | 53 | * @param cont function to call with the actual block (at most once, on success) |
54 | * @param cont_cls closure for cont | 54 | * @param cont_cls closure for @a cont |
55 | * @return GNUNET_OK on success | 55 | * @return #GNUNET_OK on success |
56 | */ | 56 | */ |
57 | int | 57 | int |
58 | GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, uint32_t size, | 58 | GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, uint32_t size, |
@@ -63,40 +63,35 @@ GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, uint32_t s | |||
63 | GNUNET_DATASTORE_DatumProcessor cont, | 63 | GNUNET_DATASTORE_DatumProcessor cont, |
64 | void *cont_cls); | 64 | void *cont_cls); |
65 | 65 | ||
66 | |||
66 | /** | 67 | /** |
67 | * Handle INDEX_START-message. | 68 | * Transmit information about indexed files to @a mq. |
68 | * | 69 | * |
69 | * @param cls closure | 70 | * @param mq message queue to send information to |
70 | * @param client identification of the client | ||
71 | * @param message the actual message | ||
72 | */ | 71 | */ |
73 | void | 72 | void |
74 | GNUNET_FS_handle_index_start (void *cls, struct GNUNET_SERVER_Client *client, | 73 | GNUNET_FS_indexing_send_list (struct GNUNET_MQ_Handle *mq); |
75 | const struct GNUNET_MessageHeader *message); | ||
76 | 74 | ||
77 | 75 | ||
78 | /** | 76 | /** |
79 | * Handle INDEX_LIST_GET-message. | 77 | * Remove a file from the index. |
80 | * | 78 | * |
81 | * @param cls closure | 79 | * @param fid identifier of the file to remove |
82 | * @param client identification of the client | 80 | * @return #GNUNET_YES if the @a fid was found |
83 | * @param message the actual message | ||
84 | */ | 81 | */ |
85 | void | 82 | int |
86 | GNUNET_FS_handle_index_list_get (void *cls, struct GNUNET_SERVER_Client *client, | 83 | GNUNET_FS_indexing_do_unindex (const struct GNUNET_HashCode *fid); |
87 | const struct GNUNET_MessageHeader *message); | ||
88 | 84 | ||
89 | 85 | ||
90 | /** | 86 | /** |
91 | * Handle UNINDEX-message. | 87 | * Add the given file to the list of indexed files. |
92 | * | 88 | * |
93 | * @param cls closure | 89 | * @param filename name of the file |
94 | * @param client identification of the client | 90 | * @param file_id hash identifier for @a filename |
95 | * @param message the actual message | ||
96 | */ | 91 | */ |
97 | void | 92 | void |
98 | GNUNET_FS_handle_unindex (void *cls, struct GNUNET_SERVER_Client *client, | 93 | GNUNET_FS_add_to_index (const char *filename, |
99 | const struct GNUNET_MessageHeader *message); | 94 | const struct GNUNET_HashCode *file_id); |
100 | 95 | ||
101 | 96 | ||
102 | /** | 97 | /** |