Handle for controlling a publication process. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/fs/fs_api.h>
Data Fields | |
struct GNUNET_FS_Handle * | h |
Handle to the global fs context. More... | |
struct TopLevelActivity * | top |
Our top-level activity entry (if we are top-level, otherwise NULL). More... | |
struct GNUNET_FS_FileInformation * | fi |
File-structure that is being shared. More... | |
struct GNUNET_CRYPTO_EcdsaPrivateKey * | ns |
Namespace that we are publishing in, NULL if we have no namespace. More... | |
char * | nid |
ID of the content in the namespace, NULL if we have no namespace. More... | |
char * | nuid |
ID for future updates, NULL if we have no namespace or no updates. More... | |
char * | serialization |
Filename used for serializing information about this operation (should be determined using 'mktemp'). More... | |
struct GNUNET_MQ_Handle * | mq |
Our own message queue for the FS service; only briefly used when we start to index a file, otherwise NULL. More... | |
struct GNUNET_FS_FileInformation * | fi_pos |
Current position in the file-tree for the upload. More... | |
struct GNUNET_CRYPTO_FileHashContext * | fhc |
Non-null if we are currently hashing a file. More... | |
struct GNUNET_DATASTORE_Handle * | dsh |
Connection to the datastore service. More... | |
struct GNUNET_DATASTORE_QueueEntry * | qre |
Queue entry for reservation/unreservation. More... | |
struct GNUNET_FS_PublishSksContext * | sks_pc |
Context for SKS publishing operation that is part of this publishing operation (NULL if not active). More... | |
struct GNUNET_FS_PublishKskContext * | ksk_pc |
Context for KSK publishing operation that is part of this publishing operation (NULL if not active). More... | |
struct GNUNET_SCHEDULER_Task * | upload_task |
ID of the task performing the upload. More... | |
uint64_t | reserve_space |
Storage space to reserve for the operation. More... | |
uint32_t | reserve_entries |
Overall number of entries to reserve for the publish operation. More... | |
enum GNUNET_FS_PublishOptions | options |
Options for publishing. More... | |
int | rid |
Space reservation ID with datastore service for this upload. More... | |
int | any_done |
Set to GNUNET_YES if we were able to publish any block. More... | |
int | all_done |
Set to GNUNET_YES if all processing has completed. More... | |
int | skip_next_fi_callback |
Flag set to GNUNET_YES if the next callback from GNUNET_FS_file_information_inspect should be skipped because it is for the directory which was already processed with the parent. More... | |
struct GNUNET_FS_Handle* GNUNET_FS_PublishContext::h |
Handle to the global fs context.
Definition at line 1184 of file fs_api.h.
Referenced by create_loc_uri(), deserialize_publish_file(), ds_put_cont(), fip_signal_stop(), GNUNET_FS_publish_make_status_(), GNUNET_FS_publish_signal_suspend_(), GNUNET_FS_publish_stop(), GNUNET_FS_publish_sync_(), hash_for_index_cb(), publish_content(), publish_kblocks(), publish_sblock(), and signal_publish_error().
struct TopLevelActivity* GNUNET_FS_PublishContext::top |
Our top-level activity entry (if we are top-level, otherwise NULL).
Definition at line 1189 of file fs_api.h.
Referenced by deserialize_publish_file(), GNUNET_FS_publish_signal_suspend_(), and GNUNET_FS_publish_stop().
struct GNUNET_FS_FileInformation* GNUNET_FS_PublishContext::fi |
File-structure that is being shared.
Definition at line 1194 of file fs_api.h.
Referenced by deserialize_publish_file(), finish_release_reserve(), finish_reserve(), fip_signal_suspend(), GNUNET_FS_publish_signal_suspend_(), GNUNET_FS_publish_stop(), GNUNET_FS_publish_sync_(), publish_cleanup(), publish_sblock(), and publish_sblocks_cont().
struct GNUNET_CRYPTO_EcdsaPrivateKey* GNUNET_FS_PublishContext::ns |
Namespace that we are publishing in, NULL if we have no namespace.
Definition at line 1199 of file fs_api.h.
Referenced by deserialize_publish_file(), GNUNET_FS_publish_sync_(), and publish_sblock().
char* GNUNET_FS_PublishContext::nid |
ID of the content in the namespace, NULL if we have no namespace.
Definition at line 1204 of file fs_api.h.
Referenced by deserialize_publish_file(), GNUNET_FS_publish_sync_(), publish_cleanup(), and publish_sblock().
char* GNUNET_FS_PublishContext::nuid |
ID for future updates, NULL if we have no namespace or no updates.
Definition at line 1209 of file fs_api.h.
Referenced by deserialize_publish_file(), GNUNET_FS_publish_sync_(), publish_cleanup(), and publish_sblock().
char* GNUNET_FS_PublishContext::serialization |
Filename used for serializing information about this operation (should be determined using 'mktemp').
Definition at line 1215 of file fs_api.h.
Referenced by deserialize_publish_file(), GNUNET_FS_publish_stop(), GNUNET_FS_publish_sync_(), and publish_cleanup().
struct GNUNET_MQ_Handle* GNUNET_FS_PublishContext::mq |
Our own message queue for the FS service; only briefly used when we start to index a file, otherwise NULL.
Definition at line 1221 of file fs_api.h.
Referenced by client_connect_cb(), create_loc_uri(), handle_index_start_failed(), handle_index_start_ok(), hash_for_index_cb(), index_mq_error_handler(), loc_mq_error_handler(), and publish_cleanup().
struct GNUNET_FS_FileInformation* GNUNET_FS_PublishContext::fi_pos |
Current position in the file-tree for the upload.
Definition at line 1226 of file fs_api.h.
Referenced by block_proc(), block_reader(), create_loc_uri(), deserialize_publish_file(), ds_put_cont(), encode_cont(), GNUNET_FS_publish_main_(), GNUNET_FS_publish_sync_(), handle_index_start_failed(), handle_index_start_ok(), handle_signature_response(), hash_for_index_cb(), index_mq_error_handler(), progress_proc(), publish_content(), publish_kblocks(), and publish_kblocks_cont().
struct GNUNET_CRYPTO_FileHashContext* GNUNET_FS_PublishContext::fhc |
Non-null if we are currently hashing a file.
Definition at line 1231 of file fs_api.h.
Referenced by GNUNET_FS_publish_main_(), hash_for_index_cb(), and publish_cleanup().
struct GNUNET_DATASTORE_Handle* GNUNET_FS_PublishContext::dsh |
Connection to the datastore service.
Definition at line 1236 of file fs_api.h.
Referenced by block_proc(), deserialize_publish_file(), publish_cleanup(), publish_sblocks_cont(), and suspend_operation().
struct GNUNET_DATASTORE_QueueEntry* GNUNET_FS_PublishContext::qre |
Queue entry for reservation/unreservation.
Definition at line 1241 of file fs_api.h.
Referenced by block_proc(), ds_put_cont(), finish_release_reserve(), finish_reserve(), GNUNET_FS_publish_stop(), publish_sblocks_cont(), and suspend_operation().
struct GNUNET_FS_PublishSksContext* GNUNET_FS_PublishContext::sks_pc |
Context for SKS publishing operation that is part of this publishing operation (NULL if not active).
Definition at line 1247 of file fs_api.h.
Referenced by GNUNET_FS_publish_stop(), publish_sblock(), publish_sblocks_cont(), and suspend_operation().
struct GNUNET_FS_PublishKskContext* GNUNET_FS_PublishContext::ksk_pc |
Context for KSK publishing operation that is part of this publishing operation (NULL if not active).
Definition at line 1253 of file fs_api.h.
Referenced by GNUNET_FS_publish_stop(), publish_kblocks(), publish_kblocks_cont(), and suspend_operation().
struct GNUNET_SCHEDULER_Task* GNUNET_FS_PublishContext::upload_task |
ID of the task performing the upload.
NO_TASK if the upload has completed.
Definition at line 1259 of file fs_api.h.
Referenced by block_proc(), deserialize_publish_file(), ds_put_cont(), encode_cont(), finish_reserve(), GNUNET_FS_publish_main_(), GNUNET_FS_publish_signal_suspend_(), GNUNET_FS_publish_stop(), publish_cleanup(), and publish_kblocks_cont().
uint64_t GNUNET_FS_PublishContext::reserve_space |
Storage space to reserve for the operation.
Definition at line 1264 of file fs_api.h.
Referenced by fip_signal_start().
uint32_t GNUNET_FS_PublishContext::reserve_entries |
Overall number of entries to reserve for the publish operation.
Definition at line 1270 of file fs_api.h.
Referenced by fip_signal_start().
enum GNUNET_FS_PublishOptions GNUNET_FS_PublishContext::options |
Options for publishing.
Definition at line 1275 of file fs_api.h.
Referenced by deserialize_publish_file(), GNUNET_FS_publish_sync_(), hash_for_index_cb(), publish_kblocks(), and publish_sblock().
int GNUNET_FS_PublishContext::rid |
Space reservation ID with datastore service for this upload.
Definition at line 1281 of file fs_api.h.
Referenced by block_proc(), finish_reserve(), publish_sblocks_cont(), and suspend_operation().
int GNUNET_FS_PublishContext::any_done |
Set to GNUNET_YES if we were able to publish any block.
(and thus unindexing on error might make sense).
Definition at line 1287 of file fs_api.h.
Referenced by ds_put_cont(), and signal_publish_error().
int GNUNET_FS_PublishContext::all_done |
Set to GNUNET_YES if all processing has completed.
Definition at line 1292 of file fs_api.h.
Referenced by deserialize_publish_file(), finish_release_reserve(), GNUNET_FS_publish_main_(), and GNUNET_FS_publish_sync_().
int GNUNET_FS_PublishContext::skip_next_fi_callback |
Flag set to GNUNET_YES if the next callback from GNUNET_FS_file_information_inspect should be skipped because it is for the directory which was already processed with the parent.
Definition at line 1299 of file fs_api.h.
Referenced by fip_signal_resume(), fip_signal_start(), fip_signal_stop(), fip_signal_suspend(), GNUNET_FS_publish_signal_suspend_(), and GNUNET_FS_publish_stop().