GNUnet 0.21.1
GNUNET_BLOCK_Group Struct Reference

Block group data. More...

#include <gnunet_block_plugin.h>

Collaboration diagram for GNUNET_BLOCK_Group:
[legend]

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...
 

Detailed Description

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.

Field Documentation

◆ ctx

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.

◆ type

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().

◆ serialize_cb

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().

◆ mark_seen_cb

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().

◆ merge_cb

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().

◆ destroy_cb

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().

◆ internal_cls

void* GNUNET_BLOCK_Group::internal_cls

The documentation for this struct was generated from the following file: