GNUnet  0.18.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 102 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 107 of file gnunet_block_plugin.h.

◆ type

enum GNUNET_BLOCK_Type GNUNET_BLOCK_Group::type

◆ serialize_cb

GNUNET_BLOCK_GroupSerializeFunction GNUNET_BLOCK_Group::serialize_cb

Serialize the block group data, can be NULL if not supported.

Definition at line 118 of file gnunet_block_plugin.h.

Referenced by GNUNET_BLOCK_GROUP_bf_create().

◆ 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 124 of file gnunet_block_plugin.h.

Referenced by GNUNET_BLOCK_GROUP_bf_create().

◆ 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 130 of file gnunet_block_plugin.h.

Referenced by GNUNET_BLOCK_GROUP_bf_create().

◆ 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 136 of file gnunet_block_plugin.h.

Referenced by GNUNET_BLOCK_GROUP_bf_create(), and GNUNET_BLOCK_group_destroy().

◆ internal_cls

void* GNUNET_BLOCK_Group::internal_cls

Internal data structure of the plugin.

Definition at line 141 of file gnunet_block_plugin.h.

Referenced by bf_group_destroy_cb(), bf_group_mark_seen_cb(), and GNUNET_BLOCK_GROUP_bf_create().


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