Handle for a plugin. More...
Data Fields | |
char * | library_name |
Name of the shared library. More... | |
struct GNUNET_BLOCK_PluginFunctions * | api |
Plugin API. More... | |
struct GNUNET_GNSRECORD_PluginFunctions * | api |
Plugin API. More... | |
struct GNUNET_DATACACHE_PluginEnvironment * | env |
Our execution environment. More... | |
struct GNUNET_CONTAINER_MultiHashMap * | map |
Our hash map. More... | |
struct GNUNET_CONTAINER_Heap * | heaps [24] |
Heaps sorted by distance. More... | |
struct GNUNET_PQ_Context * | dbh |
Native Postgres database handle. More... | |
unsigned int | num_items |
Number of key-value pairs in the database. More... | |
sqlite3 * | dbh |
Handle to the sqlite database. More... | |
char * | fn |
Filename used for the DB. More... | |
sqlite3_stmt * | insert_stmt |
Prepared statement for sqlite_plugin_put. More... | |
sqlite3_stmt * | get_count_stmt |
Prepared statement for sqlite_plugin_get. More... | |
sqlite3_stmt * | get_count_any_stmt |
Prepared statement for sqlite_plugin_get. More... | |
sqlite3_stmt * | get_stmt |
Prepared statement for sqlite_plugin_get. More... | |
sqlite3_stmt * | get_any_stmt |
Prepared statement for sqlite_plugin_get. More... | |
sqlite3_stmt * | del_select_stmt |
Prepared statement for sqlite_plugin_del. More... | |
sqlite3_stmt * | del_expired_stmt |
Prepared statement for sqlite_plugin_del. More... | |
sqlite3_stmt * | del_stmt |
Prepared statement for sqlite_plugin_del. More... | |
sqlite3_stmt * | get_closest_stmt |
Prepared statement for sqlite_plugin_get_closest. More... | |
struct GNUNET_DATASTORE_PluginEnvironment * | env |
Our execution environment. More... | |
struct GNUNET_CONTAINER_MultiHashMap * | keyvalue |
Mapping from keys to 'struct Value's. More... | |
struct GNUNET_CONTAINER_Heap * | by_expiration |
Heap organized by minimum expiration time. More... | |
struct GNUNET_CONTAINER_Heap * | by_replication |
Heap organized by maximum replication value. More... | |
struct ZeroAnonByType * | zero_head |
Head of list of arrays containing zero-anonymity values by type. More... | |
struct ZeroAnonByType * | zero_tail |
Tail of list of arrays containing zero-anonymity values by type. More... | |
unsigned long long | size |
Size of all values we're storing. More... | |
sqlite3_stmt * | remove |
Precompiled SQL for remove_key. More... | |
sqlite3_stmt * | delRow |
Precompiled SQL for deletion. More... | |
sqlite3_stmt * | update |
Precompiled SQL for update. More... | |
sqlite3_stmt * | maxRepl |
Get maximum repl value in database. More... | |
sqlite3_stmt * | updRepl |
Precompiled SQL for replication decrement. More... | |
sqlite3_stmt * | selRepl |
Precompiled SQL for replication selection. More... | |
sqlite3_stmt * | selExpi |
Precompiled SQL for expiration selection. More... | |
sqlite3_stmt * | selZeroAnon |
Precompiled SQL for expiration selection. More... | |
sqlite3_stmt * | insertContent |
Precompiled SQL for insertion. More... | |
sqlite3_stmt * | get [8] |
Precompiled SQL for selection. More... | |
int | drop_on_shutdown |
Should the database be dropped on shutdown? More... | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Our configuration. More... | |
struct GNUNET_CONTAINER_MultiHashMap * | hm |
HashMap. More... | |
sqlite3_stmt * | cache_block |
Precompiled SQL for caching a block. More... | |
sqlite3_stmt * | delete_block |
Precompiled SQL for deleting an older block. More... | |
sqlite3_stmt * | lookup_block |
Precompiled SQL for looking up a block. More... | |
sqlite3_stmt * | expire_blocks |
Precompiled SQL for removing expired blocks. More... | |
bool | ready |
Database is prepared and ready. More... | |
sqlite3_stmt * | store_records |
Precompiled SQL to store records. More... | |
sqlite3_stmt * | delete_records |
Precompiled SQL to deltete existing records. More... | |
sqlite3_stmt * | iterate_zone |
Precompiled SQL for iterate records within a zone. More... | |
sqlite3_stmt * | iterate_all_zones |
Precompiled SQL for iterate all records within all zones. More... | |
sqlite3_stmt * | zone_to_name |
Precompiled SQL to for reverse lookup based on PKEY. More... | |
sqlite3_stmt * | lookup_label |
Precompiled SQL to lookup records based on label. More... | |
sqlite3_stmt * | editor_hint_clear |
Precompiled SQL to clear editor hint. More... | |
sqlite3_stmt * | insert_peerstoredata |
Precompiled SQL for inserting into peerstoredata. More... | |
sqlite3_stmt * | select_peerstoredata |
Precompiled SQL for selecting from peerstoredata. More... | |
sqlite3_stmt * | select_peerstoredata_by_pid |
Precompiled SQL for selecting from peerstoredata. More... | |
sqlite3_stmt * | select_peerstoredata_by_key |
Precompiled SQL for selecting from peerstoredata. More... | |
sqlite3_stmt * | select_peerstoredata_by_all |
Precompiled SQL for selecting from peerstoredata. More... | |
sqlite3_stmt * | expire_peerstoredata |
Precompiled SQL for deleting expired records from peerstoredata. More... | |
sqlite3_stmt * | delete_peerstoredata |
Precompiled SQL for deleting records with given key. More... | |
struct GNUNET_DHTU_Source | src |
Our "source" address. More... | |
struct GNUNET_DHTU_PluginEnvironment * | env |
Callbacks into the DHT. More... | |
struct GNUNET_PEERSTORE_Handle * | peerstore |
Handle to the PEERSTORE service. More... | |
struct GNUNET_CORE_Handle * | core |
Handle to the CORE service. More... | |
struct GNUNET_TRANSPORT_ApplicationHandle * | transport |
Handle to Transport service. More... | |
struct GNUNET_NSE_Handle * | nse |
Handle to the NSE service. More... | |
struct GNUNET_PEERSTORE_Monitor * | peerstore_notify |
Our peerstore notification context. More... | |
struct GNUNET_PeerIdentity | my_identity |
Identity of this peer. More... | |
struct GNUNET_CRYPTO_EddsaPrivateKey * | my_priv |
Our private key. More... | |
struct GNUNET_DHTU_Source * | src_head |
Head of sources where we receive traffic. More... | |
struct GNUNET_DHTU_Source * | src_tail |
Tail of sources where we receive traffic. More... | |
struct GNUNET_DHTU_Target * | dst_head |
Head of destinations that are active. More... | |
struct GNUNET_DHTU_Target * | dst_tail |
Tail of destinations that are active. More... | |
struct GNUNET_CONTAINER_MultiHashMap * | dsts |
Map from hashes of sockaddrs to targets. More... | |
struct GNUNET_SCHEDULER_Task * | scan_task |
Task that scans for IP address changes. More... | |
struct GNUNET_SCHEDULER_Task * | read_task |
Task that reads incoming UDP packets. More... | |
char * | port |
Port we bind to. More... | |
struct GNUNET_NETWORK_Handle * | sock |
My UDP socket. More... | |
struct GNUNET_PeerIdentity | my_id |
My identity. More... | |
unsigned int | scan_generation |
How often have we scanned for IPs? More... | |
uint16_t | port16 |
Port as a 16-bit value. More... | |
struct GNUNET_RECLAIM_AttributePluginFunctions * | api |
Plugin API. More... | |
struct GNUNET_RECLAIM_CredentialPluginFunctions * | api |
Plugin API. More... | |
Handle for a plugin.
struct returned by the initialization function of the plugin
Closure for all plugin functions.
Context for all functions in this plugin.
char * Plugin::library_name |
Name of the shared library.
Name of the plugin.
Definition at line 42 of file block.c.
Referenced by add_plugin().
struct GNUNET_BLOCK_PluginFunctions* Plugin::api |
Plugin API.
Definition at line 47 of file block.c.
Referenced by add_plugin(), DHTU_gnunet_done(), DHTU_ip_done(), libgnunet_plugin_datacache_heap_done(), libgnunet_plugin_datacache_heap_init(), libgnunet_plugin_datacache_postgres_done(), libgnunet_plugin_datacache_postgres_init(), libgnunet_plugin_datacache_sqlite_done(), libgnunet_plugin_datacache_sqlite_init(), libgnunet_plugin_datacache_template_done(), libgnunet_plugin_datacache_template_init(), libgnunet_plugin_datastore_heap_done(), libgnunet_plugin_datastore_heap_init(), libgnunet_plugin_datastore_postgres_done(), libgnunet_plugin_datastore_postgres_init(), libgnunet_plugin_datastore_sqlite_done(), libgnunet_plugin_datastore_template_done(), libgnunet_plugin_datastore_template_init(), libgnunet_plugin_namecache_flat_done(), libgnunet_plugin_namecache_postgres_done(), libgnunet_plugin_namecache_sqlite_done(), libgnunet_plugin_namestore_flat_done(), libgnunet_plugin_namestore_postgres_done(), libgnunet_plugin_namestore_sqlite_done(), libgnunet_plugin_peerstore_sqlite_done(), libgnunet_plugin_rest_reclaim_done(), REST_config_done(), REST_copying_done(), REST_gns_done(), REST_identity_done(), REST_namestore_done(), REST_openid_done(), and REST_reclaim_done().
struct GNUNET_GNSRECORD_PluginFunctions* Plugin::api |
Plugin API.
Definition at line 48 of file gnsrecord.c.
struct GNUNET_DHTU_PluginEnvironment * Plugin::env |
Our execution environment.
Callbacks into the DHT.
Definition at line 46 of file plugin_datacache_heap.c.
struct GNUNET_CONTAINER_MultiHashMap* Plugin::map |
Our hash map.
Definition at line 51 of file plugin_datacache_heap.c.
struct GNUNET_CONTAINER_Heap* Plugin::heaps[24] |
Heaps sorted by distance.
Definition at line 56 of file plugin_datacache_heap.c.
sqlite3 * Plugin::dbh |
Native Postgres database handle.
Native SQLite database handle.
Postgres database handle.
Definition at line 51 of file plugin_datacache_postgres.c.
Referenced by libgnunet_plugin_datacache_sqlite_init().
unsigned int Plugin::num_items |
Number of key-value pairs in the database.
Definition at line 56 of file plugin_datacache_postgres.c.
sqlite3* Plugin::dbh |
Handle to the sqlite database.
Native SQLite database handle.
Definition at line 57 of file plugin_datacache_sqlite.c.
char * Plugin::fn |
Filename used for the DB.
Database filename.
Definition at line 62 of file plugin_datacache_sqlite.c.
Referenced by libgnunet_plugin_datacache_sqlite_init(), and libgnunet_plugin_datastore_sqlite_done().
sqlite3_stmt* Plugin::insert_stmt |
Prepared statement for sqlite_plugin_put.
Definition at line 67 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::get_count_stmt |
Prepared statement for sqlite_plugin_get.
Definition at line 72 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::get_count_any_stmt |
Prepared statement for sqlite_plugin_get.
Definition at line 77 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::get_stmt |
Prepared statement for sqlite_plugin_get.
Definition at line 82 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::get_any_stmt |
Prepared statement for sqlite_plugin_get.
Definition at line 87 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::del_select_stmt |
Prepared statement for sqlite_plugin_del.
Definition at line 92 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::del_expired_stmt |
Prepared statement for sqlite_plugin_del.
Definition at line 97 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::del_stmt |
Prepared statement for sqlite_plugin_del.
Definition at line 102 of file plugin_datacache_sqlite.c.
sqlite3_stmt* Plugin::get_closest_stmt |
Prepared statement for sqlite_plugin_get_closest.
Definition at line 107 of file plugin_datacache_sqlite.c.
struct GNUNET_DATASTORE_PluginEnvironment* Plugin::env |
Our execution environment.
Definition at line 142 of file plugin_datastore_heap.c.
struct GNUNET_CONTAINER_MultiHashMap* Plugin::keyvalue |
Mapping from keys to 'struct Value's.
Definition at line 147 of file plugin_datastore_heap.c.
struct GNUNET_CONTAINER_Heap* Plugin::by_expiration |
Heap organized by minimum expiration time.
Definition at line 152 of file plugin_datastore_heap.c.
struct GNUNET_CONTAINER_Heap* Plugin::by_replication |
Heap organized by maximum replication value.
Definition at line 157 of file plugin_datastore_heap.c.
struct ZeroAnonByType* Plugin::zero_head |
Head of list of arrays containing zero-anonymity values by type.
Definition at line 162 of file plugin_datastore_heap.c.
struct ZeroAnonByType* Plugin::zero_tail |
Tail of list of arrays containing zero-anonymity values by type.
Definition at line 167 of file plugin_datastore_heap.c.
unsigned long long Plugin::size |
Size of all values we're storing.
Definition at line 172 of file plugin_datastore_heap.c.
sqlite3_stmt* Plugin::remove |
Precompiled SQL for remove_key.
Definition at line 118 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::delRow |
Precompiled SQL for deletion.
Definition at line 123 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::update |
Precompiled SQL for update.
Definition at line 128 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::maxRepl |
Get maximum repl value in database.
Definition at line 133 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::updRepl |
Precompiled SQL for replication decrement.
Definition at line 138 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::selRepl |
Precompiled SQL for replication selection.
Definition at line 143 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::selExpi |
Precompiled SQL for expiration selection.
Definition at line 148 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::selZeroAnon |
Precompiled SQL for expiration selection.
Definition at line 153 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::insertContent |
Precompiled SQL for insertion.
Definition at line 158 of file plugin_datastore_sqlite.c.
sqlite3_stmt* Plugin::get[8] |
Precompiled SQL for selection.
Definition at line 163 of file plugin_datastore_sqlite.c.
int Plugin::drop_on_shutdown |
Should the database be dropped on shutdown?
Definition at line 168 of file plugin_datastore_sqlite.c.
const struct GNUNET_CONFIGURATION_Handle * Plugin::cfg |
struct GNUNET_CONTAINER_MultiHashMap * Plugin::hm |
HashMap.
Definition at line 47 of file plugin_namecache_flat.c.
sqlite3_stmt* Plugin::cache_block |
Precompiled SQL for caching a block.
Definition at line 82 of file plugin_namecache_sqlite.c.
sqlite3_stmt* Plugin::delete_block |
Precompiled SQL for deleting an older block.
Definition at line 87 of file plugin_namecache_sqlite.c.
sqlite3_stmt* Plugin::lookup_block |
Precompiled SQL for looking up a block.
Definition at line 92 of file plugin_namecache_sqlite.c.
sqlite3_stmt* Plugin::expire_blocks |
Precompiled SQL for removing expired blocks.
Definition at line 97 of file plugin_namecache_sqlite.c.
bool Plugin::ready |
Database is prepared and ready.
Statements prepared, we are ready to go if true.
Definition at line 53 of file plugin_namestore_postgres.c.
sqlite3_stmt* Plugin::store_records |
Precompiled SQL to store records.
Definition at line 89 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::delete_records |
Precompiled SQL to deltete existing records.
Definition at line 94 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::iterate_zone |
Precompiled SQL for iterate records within a zone.
Definition at line 99 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::iterate_all_zones |
Precompiled SQL for iterate all records within all zones.
Definition at line 104 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::zone_to_name |
Precompiled SQL to for reverse lookup based on PKEY.
Definition at line 109 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::lookup_label |
Precompiled SQL to lookup records based on label.
Definition at line 114 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::editor_hint_clear |
Precompiled SQL to clear editor hint.
Definition at line 119 of file plugin_namestore_sqlite.c.
sqlite3_stmt* Plugin::insert_peerstoredata |
Precompiled SQL for inserting into peerstoredata.
Definition at line 86 of file plugin_peerstore_sqlite.c.
sqlite3_stmt* Plugin::select_peerstoredata |
Precompiled SQL for selecting from peerstoredata.
Definition at line 91 of file plugin_peerstore_sqlite.c.
sqlite3_stmt* Plugin::select_peerstoredata_by_pid |
Precompiled SQL for selecting from peerstoredata.
Definition at line 96 of file plugin_peerstore_sqlite.c.
sqlite3_stmt* Plugin::select_peerstoredata_by_key |
Precompiled SQL for selecting from peerstoredata.
Definition at line 101 of file plugin_peerstore_sqlite.c.
sqlite3_stmt* Plugin::select_peerstoredata_by_all |
Precompiled SQL for selecting from peerstoredata.
Definition at line 106 of file plugin_peerstore_sqlite.c.
sqlite3_stmt* Plugin::expire_peerstoredata |
Precompiled SQL for deleting expired records from peerstoredata.
Definition at line 112 of file plugin_peerstore_sqlite.c.
sqlite3_stmt* Plugin::delete_peerstoredata |
Precompiled SQL for deleting records with given key.
Definition at line 118 of file plugin_peerstore_sqlite.c.
struct GNUNET_DHTU_Source Plugin::src |
Our "source" address.
Traditional CORE API does not tell us which source it is, so they are all identical.
Definition at line 134 of file plugin_dhtu_gnunet.c.
struct GNUNET_DHTU_PluginEnvironment* Plugin::env |
Callbacks into the DHT.
Definition at line 139 of file plugin_dhtu_gnunet.c.
struct GNUNET_PEERSTORE_Handle* Plugin::peerstore |
Handle to the PEERSTORE service.
Definition at line 144 of file plugin_dhtu_gnunet.c.
struct GNUNET_CORE_Handle* Plugin::core |
Handle to the CORE service.
Definition at line 149 of file plugin_dhtu_gnunet.c.
struct GNUNET_TRANSPORT_ApplicationHandle* Plugin::transport |
Handle to Transport service.
Definition at line 154 of file plugin_dhtu_gnunet.c.
struct GNUNET_NSE_Handle* Plugin::nse |
Handle to the NSE service.
Definition at line 159 of file plugin_dhtu_gnunet.c.
struct GNUNET_PEERSTORE_Monitor* Plugin::peerstore_notify |
Our peerstore notification context.
We use notification to instantly learn about new peers as they are discovered.
Definition at line 165 of file plugin_dhtu_gnunet.c.
struct GNUNET_PeerIdentity Plugin::my_identity |
Identity of this peer.
Definition at line 170 of file plugin_dhtu_gnunet.c.
struct GNUNET_CRYPTO_EddsaPrivateKey* Plugin::my_priv |
Our private key.
Definition at line 175 of file plugin_dhtu_gnunet.c.
struct GNUNET_DHTU_Source* Plugin::src_head |
Head of sources where we receive traffic.
Definition at line 177 of file plugin_dhtu_ip.c.
struct GNUNET_DHTU_Source* Plugin::src_tail |
Tail of sources where we receive traffic.
Definition at line 182 of file plugin_dhtu_ip.c.
struct GNUNET_DHTU_Target* Plugin::dst_head |
Head of destinations that are active.
Sorted by last use, with latest used at the head.
Definition at line 188 of file plugin_dhtu_ip.c.
struct GNUNET_DHTU_Target* Plugin::dst_tail |
Tail of destinations that are active.
Definition at line 193 of file plugin_dhtu_ip.c.
struct GNUNET_CONTAINER_MultiHashMap* Plugin::dsts |
Map from hashes of sockaddrs to targets.
Definition at line 198 of file plugin_dhtu_ip.c.
struct GNUNET_SCHEDULER_Task* Plugin::scan_task |
Task that scans for IP address changes.
Definition at line 203 of file plugin_dhtu_ip.c.
struct GNUNET_SCHEDULER_Task* Plugin::read_task |
Task that reads incoming UDP packets.
Definition at line 208 of file plugin_dhtu_ip.c.
char* Plugin::port |
Port we bind to.
Definition at line 213 of file plugin_dhtu_ip.c.
struct GNUNET_NETWORK_Handle* Plugin::sock |
struct GNUNET_PeerIdentity Plugin::my_id |
My identity.
Definition at line 223 of file plugin_dhtu_ip.c.
unsigned int Plugin::scan_generation |
How often have we scanned for IPs?
Definition at line 228 of file plugin_dhtu_ip.c.
uint16_t Plugin::port16 |
Port as a 16-bit value.
Definition at line 233 of file plugin_dhtu_ip.c.
struct GNUNET_RECLAIM_AttributePluginFunctions* Plugin::api |
Plugin API.
Definition at line 45 of file reclaim_attribute.c.
struct GNUNET_RECLAIM_CredentialPluginFunctions* Plugin::api |
Plugin API.
Definition at line 44 of file reclaim_credential.c.