GNUnet 0.22.2
GNUNET_DATACACHE_PluginEnvironment Struct Reference

The datastore service will pass a pointer to a struct of this type as the first and only argument to the entry point of each datastore plugin. More...

#include <gnunet_datacache_plugin.h>

Collaboration diagram for GNUNET_DATACACHE_PluginEnvironment:
[legend]

Data Fields

const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration to use. More...
 
const char * section
 Configuration section to use. More...
 
void * cls
 Closure to use for callbacks. More...
 
GNUNET_DATACACHE_DeleteNotifyCallback delete_notify
 Function to call whenever the plugin needs to discard content that it was asked to store. More...
 
unsigned long long quota
 How much space are we allowed to use? More...
 

Detailed Description

The datastore service will pass a pointer to a struct of this type as the first and only argument to the entry point of each datastore plugin.

Definition at line 68 of file gnunet_datacache_plugin.h.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_DATACACHE_PluginEnvironment::cfg

Configuration to use.

Definition at line 73 of file gnunet_datacache_plugin.h.

◆ section

const char* GNUNET_DATACACHE_PluginEnvironment::section

Configuration section to use.

Definition at line 78 of file gnunet_datacache_plugin.h.

◆ cls

void* GNUNET_DATACACHE_PluginEnvironment::cls

◆ delete_notify

GNUNET_DATACACHE_DeleteNotifyCallback GNUNET_DATACACHE_PluginEnvironment::delete_notify

Function to call whenever the plugin needs to discard content that it was asked to store.

Definition at line 89 of file gnunet_datacache_plugin.h.

◆ quota

unsigned long long GNUNET_DATACACHE_PluginEnvironment::quota

How much space are we allowed to use?

Definition at line 94 of file gnunet_datacache_plugin.h.


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