GNUnet  0.11.x
Data Fields
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 64 of file gnunet_datacache_plugin.h.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_DATACACHE_PluginEnvironment::cfg

◆ section

const char* GNUNET_DATACACHE_PluginEnvironment::section

Configuration section to use.

Definition at line 74 of file gnunet_datacache_plugin.h.

Referenced by GNUNET_DATACACHE_create().

◆ 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 85 of file gnunet_datacache_plugin.h.

Referenced by GNUNET_DATACACHE_create(), heap_plugin_del(), postgres_plugin_del(), and sqlite_plugin_del().

◆ quota

unsigned long long GNUNET_DATACACHE_PluginEnvironment::quota

How much space are we allowed to use?

Definition at line 90 of file gnunet_datacache_plugin.h.

Referenced by GNUNET_DATACACHE_create(), and GNUNET_DATACACHE_put().


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