Block group data. More...
#include <gnunet_block_plugin.h>
Data Fields | |
struct GNUENT_BLOCK_Context * | ctx |
Context owning the block group. More... | |
enum GNUNET_BLOCK_Type | type |
Type for the block group. More... | |
GNUNET_BLOCK_GroupSerializeFunction | serialize_cb |
Serialize the block group data, can be NULL if not supported. More... | |
GNUNET_BLOCK_GroupMarkSeenFunction | mark_seen_cb |
Function to call to mark elements as seen in the group. More... | |
GNUNET_BLOCK_GroupMergeFunction | merge_cb |
Function to call to merge two groups. More... | |
GNUNET_BLOCK_GroupDestroyFunction | destroy_cb |
Function to call to destroy the block group. More... | |
void * | internal_cls |
Internal data structure of the plugin. More... | |
Block group data.
The plugin must initialize the callbacks and can use the internal_cls as it likes.
Definition at line 103 of file gnunet_block_plugin.h.
struct GNUENT_BLOCK_Context* GNUNET_BLOCK_Group::ctx |
Context owning the block group.
Set by the main block library.
Definition at line 108 of file gnunet_block_plugin.h.
enum GNUNET_BLOCK_Type GNUNET_BLOCK_Group::type |
Type for the block group.
Set by the main block library.
Definition at line 113 of file gnunet_block_plugin.h.
Referenced by GNUNET_BLOCK_GROUP_bf_create().
GNUNET_BLOCK_GroupSerializeFunction GNUNET_BLOCK_Group::serialize_cb |
Serialize the block group data, can be NULL if not supported.
Definition at line 119 of file gnunet_block_plugin.h.
Referenced by GNUNET_BLOCK_GROUP_bf_create(), and GNUNET_BLOCK_group_serialize().
GNUNET_BLOCK_GroupMarkSeenFunction GNUNET_BLOCK_Group::mark_seen_cb |
Function to call to mark elements as seen in the group.
Can be NULL if not supported.
Definition at line 125 of file gnunet_block_plugin.h.
Referenced by GNUNET_BLOCK_GROUP_bf_create(), and GNUNET_BLOCK_group_set_seen().
GNUNET_BLOCK_GroupMergeFunction GNUNET_BLOCK_Group::merge_cb |
Function to call to merge two groups.
Can be NULL if not supported.
Definition at line 131 of file gnunet_block_plugin.h.
Referenced by GNUNET_BLOCK_GROUP_bf_create(), and GNUNET_BLOCK_group_merge().
GNUNET_BLOCK_GroupDestroyFunction GNUNET_BLOCK_Group::destroy_cb |
Function to call to destroy the block group.
Must not be NULL.
Definition at line 137 of file gnunet_block_plugin.h.
Referenced by GNUNET_BLOCK_GROUP_bf_create(), GNUNET_BLOCK_group_destroy(), and GNUNET_BLOCK_group_merge().
void* GNUNET_BLOCK_Group::internal_cls |
Internal data structure of the plugin.
Definition at line 142 of file gnunet_block_plugin.h.
Referenced by bf_group_destroy_cb(), bf_group_mark_seen_cb(), bf_group_merge_cb(), bf_group_serialize_cb(), GNUNET_BLOCK_GROUP_bf_create(), and GNUNET_BLOCK_GROUP_bf_test_and_set().