provide a list of all indexed files More...
#include "platform.h"#include "gnunet_constants.h"#include "gnunet_fs_service.h"#include "gnunet_protocols.h"#include "fs_api.h"Go to the source code of this file.
Data Structures | |
| struct | GNUNET_FS_GetIndexedContext |
| Context for GNUNET_FS_get_indexed_files(). More... | |
Functions | |
| static void | handle_index_info_end (void *cls, const struct GNUNET_MessageHeader *msg) |
| Function called on each response from the FS service with information about indexed files. | |
| static int | check_index_info (void *cls, const struct IndexInfoMessage *iim) |
| Check validity of response from the FS service with information about indexed files. | |
| static void | handle_index_info (void *cls, const struct IndexInfoMessage *iim) |
| Function called on each response from the FS service with information about indexed files. | |
| static void | mq_error_handler (void *cls, enum GNUNET_MQ_Error error) |
| Generic error handler, called with the appropriate error code and the same closure specified at the creation of the message queue. | |
| struct GNUNET_FS_GetIndexedContext * | GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, GNUNET_FS_IndexedFileProcessor iterator, void *iterator_cls) |
| Iterate over all indexed files. | |
| void | GNUNET_FS_get_indexed_files_cancel (struct GNUNET_FS_GetIndexedContext *gic) |
| Cancel iteration over all indexed files. | |
provide a list of all indexed files
Definition in file fs_list_indexed.c.
|
static |
Function called on each response from the FS service with information about indexed files.
| cls | closure (of type struct GNUNET_FS_GetIndexedContext *) |
| msg | message with indexing information |
Definition at line 75 of file fs_list_indexed.c.
References gic, GNUNET_FS_get_indexed_files_cancel(), GNUNET_FS_GetIndexedContext::iterator, and GNUNET_FS_GetIndexedContext::iterator_cls.
|
static |
Check validity of response from the FS service with information about indexed files.
| cls | closure (of type struct GNUNET_FS_GetIndexedContext *) |
| iim | message with indexing information |
Definition at line 95 of file fs_list_indexed.c.
References filename, GNUNET_break, GNUNET_OK, GNUNET_SYSERR, IndexInfoMessage::header, and GNUNET_MessageHeader::size.
|
static |
Function called on each response from the FS service with information about indexed files.
| cls | closure (of type struct GNUNET_FS_GetIndexedContext *) |
| iim | message with indexing information |
Definition at line 119 of file fs_list_indexed.c.
References IndexInfoMessage::file_id, filename, gic, GNUNET_FS_get_indexed_files_cancel(), GNUNET_OK, GNUNET_FS_GetIndexedContext::iterator, and GNUNET_FS_GetIndexedContext::iterator_cls.
|
static |
Generic error handler, called with the appropriate error code and the same closure specified at the creation of the message queue.
Not every message queue implementation supports an error handler.
| cls | closure with the struct GNUNET_FS_GetIndexedContent * |
| error | error code |
Definition at line 146 of file fs_list_indexed.c.
References gic, GNUNET_ERROR_TYPE_WARNING, GNUNET_FS_get_indexed_files_cancel(), GNUNET_log, GNUNET_FS_GetIndexedContext::iterator, and GNUNET_FS_GetIndexedContext::iterator_cls.
Referenced by GNUNET_FS_get_indexed_files().