GNUnet  0.11.x
Data Fields
GNUNET_DATACACHE_Handle Struct Reference

Internal state of the datacache library. More...

Collaboration diagram for GNUNET_DATACACHE_Handle:
[legend]

Data Fields

struct GNUNET_CONTAINER_BloomFilterfilter
 Bloomfilter to quickly tell if we don't have the content. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Our configuration. More...
 
struct GNUNET_STATISTICS_Handlestats
 Opaque handle for the statistics service. More...
 
char * section
 Configuration section to use. More...
 
struct GNUNET_DATACACHE_PluginFunctionsapi
 API of the transport as returned by the plugin's initialization function. More...
 
char * short_name
 Short name for the plugin (i.e. More...
 
char * lib_name
 Name of the library (i.e. More...
 
char * bloom_name
 Name for the bloom filter file. More...
 
struct GNUNET_DATACACHE_PluginEnvironment env
 Environment provided to our plugin. More...
 
unsigned long long utilization
 How much space is in use right now? More...
 

Detailed Description

Internal state of the datacache library.

Definition at line 40 of file datacache.c.

Field Documentation

◆ filter

struct GNUNET_CONTAINER_BloomFilter* GNUNET_DATACACHE_Handle::filter

Bloomfilter to quickly tell if we don't have the content.

Definition at line 45 of file datacache.c.

Referenced by env_delete_notify(), GNUNET_DATACACHE_create(), GNUNET_DATACACHE_destroy(), GNUNET_DATACACHE_get(), and GNUNET_DATACACHE_put().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_DATACACHE_Handle::cfg

Our configuration.

Definition at line 50 of file datacache.c.

Referenced by GNUNET_DATACACHE_create().

◆ stats

struct GNUNET_STATISTICS_Handle* GNUNET_DATACACHE_Handle::stats

◆ section

char* GNUNET_DATACACHE_Handle::section

Configuration section to use.

Definition at line 60 of file datacache.c.

Referenced by GNUNET_DATACACHE_create(), and GNUNET_DATACACHE_destroy().

◆ api

struct GNUNET_DATACACHE_PluginFunctions* GNUNET_DATACACHE_Handle::api

API of the transport as returned by the plugin's initialization function.

Definition at line 66 of file datacache.c.

Referenced by GNUNET_DATACACHE_create(), GNUNET_DATACACHE_destroy(), GNUNET_DATACACHE_get(), GNUNET_DATACACHE_get_closest(), GNUNET_DATACACHE_get_random(), and GNUNET_DATACACHE_put().

◆ short_name

char* GNUNET_DATACACHE_Handle::short_name

Short name for the plugin (i.e.

"sqlite").

Definition at line 71 of file datacache.c.

Referenced by GNUNET_DATACACHE_create(), and GNUNET_DATACACHE_destroy().

◆ lib_name

char* GNUNET_DATACACHE_Handle::lib_name

Name of the library (i.e.

"gnunet_plugin_datacache_sqlite").

Definition at line 76 of file datacache.c.

Referenced by GNUNET_DATACACHE_create(), and GNUNET_DATACACHE_destroy().

◆ bloom_name

char* GNUNET_DATACACHE_Handle::bloom_name

Name for the bloom filter file.

Definition at line 81 of file datacache.c.

Referenced by GNUNET_DATACACHE_create(), and GNUNET_DATACACHE_destroy().

◆ env

struct GNUNET_DATACACHE_PluginEnvironment GNUNET_DATACACHE_Handle::env

Environment provided to our plugin.

Definition at line 86 of file datacache.c.

Referenced by GNUNET_DATACACHE_create(), and GNUNET_DATACACHE_put().

◆ utilization

unsigned long long GNUNET_DATACACHE_Handle::utilization

How much space is in use right now?

Definition at line 91 of file datacache.c.

Referenced by env_delete_notify(), and GNUNET_DATACACHE_put().


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