GNUnet  0.11.x
Data Fields
UpdateContext Struct Reference

Closure for update_rel_sum() and update_abs_sum(). More...

Collaboration diagram for UpdateContext:
[legend]

Data Fields

struct PreferenceClientpc
 Preference client with the sum of all absolute scores. More...
 
enum GNUNET_ATS_PreferenceKind kind
 Which kind are we updating? More...
 
uint32_t size
 Number of bytes in 'data'. More...
 
const void * data
 Pointer to the data. More...
 
uint32_t priority
 Priority of the value. More...
 
uint32_t replication
 Replication level for the value. More...
 
struct GNUNET_TIME_Absolute expiration
 Expiration time for this value. More...
 
bool updated
 True if the value was found and updated. More...
 
struct GNUNET_TESTING_Systemsystem
 The system for which we are building configurations. More...
 
struct GNUNET_CONFIGURATION_Handlecfg
 The configuration we are building. More...
 
char * gnunet_home
 The customized service home path for this peer. More...
 
uint16_t * ports
 Array of ports currently allocated to this peer. More...
 
unsigned int nports
 The number of ports in the above array. More...
 
int status
 build status - to signal error while building a configuration More...
 

Detailed Description

Closure for update_rel_sum() and update_abs_sum().

Structure for holding data to build new configurations from a configuration template.

Closure for iterator for updating.

Definition at line 423 of file gnunet-service-ats_preferences.c.

Field Documentation

◆ pc

struct PreferenceClient* UpdateContext::pc

Preference client with the sum of all absolute scores.

Definition at line 428 of file gnunet-service-ats_preferences.c.

Referenced by recalculate_relative_preferences(), update_abs_sum(), and update_rel_sum().

◆ kind

enum GNUNET_ATS_PreferenceKind UpdateContext::kind

Which kind are we updating?

Definition at line 433 of file gnunet-service-ats_preferences.c.

Referenced by recalculate_relative_preferences(), update_abs_sum(), update_iterator(), and update_rel_sum().

◆ size

uint32_t UpdateContext::size

Number of bytes in 'data'.

Definition at line 201 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), and update_iterator().

◆ data

const void* UpdateContext::data

Pointer to the data.

Definition at line 206 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), and update_iterator().

◆ priority

uint32_t UpdateContext::priority

Priority of the value.

Definition at line 211 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), and update_iterator().

◆ replication

uint32_t UpdateContext::replication

Replication level for the value.

Definition at line 216 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), and update_iterator().

◆ expiration

struct GNUNET_TIME_Absolute UpdateContext::expiration

Expiration time for this value.

Definition at line 221 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), and update_iterator().

◆ updated

bool UpdateContext::updated

True if the value was found and updated.

Definition at line 226 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), and update_iterator().

◆ system

struct GNUNET_TESTING_System* UpdateContext::system

The system for which we are building configurations.

Definition at line 744 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_(), update_config(), and update_config_sections().

◆ cfg

struct GNUNET_CONFIGURATION_Handle* UpdateContext::cfg

The configuration we are building.

Definition at line 749 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_(), update_config(), and update_config_sections().

◆ gnunet_home

char* UpdateContext::gnunet_home

The customized service home path for this peer.

Definition at line 754 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_(), and update_config().

◆ ports

uint16_t* UpdateContext::ports

Array of ports currently allocated to this peer.

These ports will be released upon peer destroy and can be used by other peers which are configured after.

Definition at line 761 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_(), and update_config().

◆ nports

unsigned int UpdateContext::nports

The number of ports in the above array.

Definition at line 766 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_(), and update_config().

◆ status

int UpdateContext::status

build status - to signal error while building a configuration

Definition at line 771 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_(), and update_config().


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