GNUnet 0.22.2
GNUNET_SET_Handle Struct Reference

Opaque handle to a set. More...

Collaboration diagram for GNUNET_SET_Handle:
[legend]

Data Fields

struct GNUNET_MQ_Handlemq
 Message queue for client. More...
 
struct GNUNET_SET_OperationHandleops_head
 Linked list of operations on the set. More...
 
struct GNUNET_SET_OperationHandleops_tail
 Linked list of operations on the set. More...
 
GNUNET_SET_ElementIterator iterator
 Callback for the current iteration over the set, NULL if no iterator is active. More...
 
void * iterator_cls
 Closure for iterator. More...
 
int destroy_requested
 Should the set be destroyed once all operations are gone? GNUNET_SYSERR if GNUNET_SET_destroy() must raise this flag, GNUNET_YES if GNUNET_SET_destroy() did raise this flag. More...
 
int invalid
 Has the set become invalid (e.g. More...
 
uint16_t iteration_id
 Both client and service count the number of iterators created so far to match replies with iterators. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration, needed when creating (lazy) copies. More...
 
struct SetCopyRequestcopy_req_head
 Doubly linked list of copy requests. More...
 
struct SetCopyRequestcopy_req_tail
 Doubly linked list of copy requests. More...
 

Detailed Description

Opaque handle to a set.

Definition at line 49 of file set_api.c.

Field Documentation

◆ mq

◆ ops_head

struct GNUNET_SET_OperationHandle* GNUNET_SET_Handle::ops_head

Linked list of operations on the set.

Definition at line 59 of file set_api.c.

Referenced by GNUNET_SET_commit(), GNUNET_SET_destroy(), GNUNET_SET_operation_cancel(), handle_client_set_error(), handle_result(), and set_operation_destroy().

◆ ops_tail

struct GNUNET_SET_OperationHandle* GNUNET_SET_Handle::ops_tail

Linked list of operations on the set.

Definition at line 64 of file set_api.c.

Referenced by GNUNET_SET_commit(), handle_result(), and set_operation_destroy().

◆ iterator

GNUNET_SET_ElementIterator GNUNET_SET_Handle::iterator

Callback for the current iteration over the set, NULL if no iterator is active.

Definition at line 70 of file set_api.c.

Referenced by GNUNET_SET_destroy(), GNUNET_SET_iterate(), handle_client_set_error(), handle_iter_done(), and handle_iter_element().

◆ iterator_cls

void* GNUNET_SET_Handle::iterator_cls

Closure for iterator.

Definition at line 75 of file set_api.c.

Referenced by GNUNET_SET_iterate(), handle_client_set_error(), handle_iter_done(), and handle_iter_element().

◆ destroy_requested

int GNUNET_SET_Handle::destroy_requested

Should the set be destroyed once all operations are gone? GNUNET_SYSERR if GNUNET_SET_destroy() must raise this flag, GNUNET_YES if GNUNET_SET_destroy() did raise this flag.

Definition at line 82 of file set_api.c.

Referenced by GNUNET_SET_destroy(), GNUNET_SET_operation_cancel(), handle_client_set_error(), handle_iter_done(), and handle_result().

◆ invalid

int GNUNET_SET_Handle::invalid

Has the set become invalid (e.g.

service died)?

Definition at line 87 of file set_api.c.

Referenced by GNUNET_SET_add_element(), GNUNET_SET_commit(), GNUNET_SET_iterate(), GNUNET_SET_remove_element(), and handle_client_set_error().

◆ iteration_id

uint16_t GNUNET_SET_Handle::iteration_id

Both client and service count the number of iterators created so far to match replies with iterators.

Definition at line 93 of file set_api.c.

Referenced by handle_client_set_error(), handle_iter_done(), and handle_iter_element().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_SET_Handle::cfg

Configuration, needed when creating (lazy) copies.

Definition at line 98 of file set_api.c.

Referenced by create_internal(), and handle_copy_lazy().

◆ copy_req_head

struct SetCopyRequest* GNUNET_SET_Handle::copy_req_head

Doubly linked list of copy requests.

Definition at line 103 of file set_api.c.

Referenced by GNUNET_SET_copy_lazy(), and handle_copy_lazy().

◆ copy_req_tail

struct SetCopyRequest* GNUNET_SET_Handle::copy_req_tail

Doubly linked list of copy requests.

Definition at line 108 of file set_api.c.

Referenced by GNUNET_SET_copy_lazy(), and handle_copy_lazy().


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