API for block plugins. More...
Go to the source code of this file.
Data Structures | |
struct | GNUNET_BLOCK_Group |
Block group data. More... | |
struct | GNUNET_BLOCK_PluginFunctions |
Each plugin is required to return a pointer to a struct of this type as the return value from its entry point. More... | |
Typedefs | |
typedef void(* | GNUNET_BLOCK_GroupMarkSeenFunction) (struct GNUNET_BLOCK_Group *bg, const struct GNUNET_HashCode *seen_results, unsigned int seen_results_count) |
Mark elements as "seen" using a hash of the element. More... | |
typedef enum GNUNET_GenericReturnValue(* | GNUNET_BLOCK_GroupMergeFunction) (struct GNUNET_BLOCK_Group *bg1, const struct GNUNET_BLOCK_Group *bg2) |
Merge two groups, if possible. More... | |
typedef enum GNUNET_GenericReturnValue(* | GNUNET_BLOCK_GroupSerializeFunction) (struct GNUNET_BLOCK_Group *bg, void **raw_data, size_t *raw_data_size) |
Serialize state of a block group. More... | |
typedef void(* | GNUNET_BLOCK_GroupDestroyFunction) (struct GNUNET_BLOCK_Group *bg) |
Destroy resources used by a block group. More... | |
typedef struct GNUNET_BLOCK_Group *(* | GNUNET_BLOCK_GroupCreateFunction) (void *cls, enum GNUNET_BLOCK_Type type, const void *raw_data, size_t raw_data_size, va_list va) |
Create a new block group. More... | |
typedef enum GNUNET_GenericReturnValue(* | GNUNET_BLOCK_QueryEvaluationFunction) (void *cls, enum GNUNET_BLOCK_Type type, const struct GNUNET_HashCode *query, const void *xquery, size_t xquery_size) |
Function called to validate a query. More... | |
typedef enum GNUNET_GenericReturnValue(* | GNUNET_BLOCK_BlockEvaluationFunction) (void *cls, enum GNUNET_BLOCK_Type type, const void *block, size_t block_size) |
Function called to validate a block for storage. More... | |
typedef enum GNUNET_BLOCK_ReplyEvaluationResult(* | GNUNET_BLOCK_ReplyEvaluationFunction) (void *cls, enum GNUNET_BLOCK_Type type, struct GNUNET_BLOCK_Group *group, const struct GNUNET_HashCode *query, const void *xquery, size_t xquery_size, const void *reply_block, size_t reply_block_size) |
Function called to validate a reply to a request. More... | |
typedef enum GNUNET_GenericReturnValue(* | GNUNET_BLOCK_GetKeyFunction) (void *cls, enum GNUNET_BLOCK_Type type, const void *block, size_t block_size, struct GNUNET_HashCode *key) |
Function called to obtain the key for a block. More... | |
API for block plugins.
Definition in file gnunet_block_plugin.h.