publish a URI under a keyword in GNUnet More...
#include "platform.h"
#include "gnunet_constants.h"
#include "gnunet_signatures.h"
#include "gnunet_util_lib.h"
#include "gnunet_fs_service.h"
#include "fs_api.h"
#include "fs_tree.h"
#include "fs_publish_ublock.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_FS_PublishKskContext |
Context for the KSK publication. More... | |
Functions | |
static void | publish_ksk_cont (void *cls) |
Continuation of GNUNET_FS_publish_ksk() that performs the actual publishing operation (iterating over all of the keywords). More... | |
static void | kb_put_cont (void *cls, const char *msg) |
Function called by the datastore API with the result from the PUT request. More... | |
struct GNUNET_FS_PublishKskContext * | GNUNET_FS_publish_ksk (struct GNUNET_FS_Handle *h, const struct GNUNET_FS_Uri *ksk_uri, const struct GNUNET_FS_MetaData *meta, const struct GNUNET_FS_Uri *uri, const struct GNUNET_FS_BlockOptions *bo, enum GNUNET_FS_PublishOptions options, GNUNET_FS_PublishContinuation cont, void *cont_cls) |
Publish a CHK under various keywords on GNUnet. More... | |
void | GNUNET_FS_publish_ksk_cancel (struct GNUNET_FS_PublishKskContext *pkc) |
Abort the KSK publishing operation. More... | |
publish a URI under a keyword in GNUnet
Definition in file fs_publish_ksk.c.
|
static |
Continuation of GNUNET_FS_publish_ksk() that performs the actual publishing operation (iterating over all of the keywords).
cls | closure of type struct PublishKskContext * |
Definition at line 144 of file fs_publish_ksk.c.
References GNUNET_FS_PublishKskContext::bo, GNUNET_FS_PublishKskContext::cont, GNUNET_FS_PublishKskContext::cont_cls, GNUNET_FS_Uri::data, GNUNET_FS_PublishKskContext::dsh, GNUNET_CRYPTO_ecdsa_key_get_anonymous(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_FS_publish_ksk_cancel(), GNUNET_FS_publish_ublock_(), GNUNET_log, GNUNET_FS_PublishKskContext::h, GNUNET_FS_PublishKskContext::i, kb_put_cont(), GNUNET_FS_Uri::keywordCount, GNUNET_FS_Uri::keywords, GNUNET_FS_Uri::ksk, GNUNET_FS_PublishKskContext::ksk_task, GNUNET_FS_PublishKskContext::ksk_uri, GNUNET_FS_PublishKskContext::meta, GNUNET_FS_PublishKskContext::options, GNUNET_FS_PublishKskContext::uc, and GNUNET_FS_PublishKskContext::uri.
Referenced by GNUNET_FS_publish_ksk(), and kb_put_cont().
|
static |
Function called by the datastore API with the result from the PUT request.
cls | closure of type struct GNUNET_FS_PublishKskContext * |
msg | error message (or NULL) |
Definition at line 125 of file fs_publish_ksk.c.
References GNUNET_FS_PublishKskContext::cont, GNUNET_FS_PublishKskContext::cont_cls, GNUNET_ERROR_TYPE_DEBUG, GNUNET_FS_publish_ksk_cancel(), GNUNET_log, GNUNET_SCHEDULER_add_now(), GNUNET_FS_PublishKskContext::ksk_task, msg, publish_ksk_cont(), and GNUNET_FS_PublishKskContext::uc.
Referenced by publish_ksk_cont().