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.

◆ kind

enum GNUNET_ATS_PreferenceKind UpdateContext::kind

Which kind are we updating?

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

Referenced by recalculate_relative_preferences(), and update_iterator().

◆ size

uint32_t UpdateContext::size

Number of bytes in 'data'.

Definition at line 201 of file plugin_datastore_heap.c.

◆ data

const void* UpdateContext::data

Pointer to the data.

Definition at line 206 of file plugin_datastore_heap.c.

◆ priority

uint32_t UpdateContext::priority

Priority of the value.

Definition at line 211 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put().

◆ replication

uint32_t UpdateContext::replication

Replication level for the value.

Definition at line 216 of file plugin_datastore_heap.c.

◆ expiration

struct GNUNET_TIME_Absolute UpdateContext::expiration

Expiration time for this value.

Definition at line 216 of file plugin_datastore_heap.c.

◆ updated

bool UpdateContext::updated

True if the value was found and updated.

Definition at line 226 of file plugin_datastore_heap.c.

◆ system

struct GNUNET_TESTING_System* UpdateContext::system

The system for which we are building configurations.

Definition at line 739 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create(), and GNUNET_TESTING_configuration_create_().

◆ cfg

struct GNUNET_CONFIGURATION_Handle* UpdateContext::cfg

◆ gnunet_home

char* UpdateContext::gnunet_home

The customized service home path for this peer.

Definition at line 749 of file testing.c.

◆ 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 756 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_().

◆ nports

unsigned int UpdateContext::nports

The number of ports in the above array.

Definition at line 761 of file testing.c.

Referenced by GNUNET_TESTING_configuration_create_().

◆ status

int UpdateContext::status

build status - to signal error while building a configuration

Definition at line 766 of file testing.c.


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