GNUnet 0.21.2
GNUNET_TESTING_AsyncContext Struct Reference

State each asynchronous command must have in its closure. More...

#include <gnunet_testing_lib.h>

Collaboration diagram for GNUNET_TESTING_AsyncContext:
[legend]

Data Fields

struct GNUNET_TESTING_Interpreteris
 Interpreter we are part of. More...
 
GNUNET_SCHEDULER_TaskCallback notify_finished
 Function to call when async operation is done. More...
 
void * notify_finished_cls
 Closure for notify_finished. More...
 
enum GNUNET_GenericReturnValue finished
 Indication if the command finished (GNUNET_OK). More...
 
bool next_called
 Set to true if interpreter_next() has already been called for this command. More...
 

Detailed Description

State each asynchronous command must have in its closure.

Definition at line 80 of file gnunet_testing_lib.h.

Field Documentation

◆ is

struct GNUNET_TESTING_Interpreter* GNUNET_TESTING_AsyncContext::is

Interpreter we are part of.

Initialized when the global interpreter starts.

Definition at line 87 of file gnunet_testing_lib.h.

Referenced by GNUNET_TESTING_async_fail(), GNUNET_TESTING_async_finish(), GNUNET_TESTING_interpreter_run_cmd_(), and notify_connect().

◆ notify_finished

GNUNET_SCHEDULER_TaskCallback GNUNET_TESTING_AsyncContext::notify_finished

Function to call when async operation is done.

Definition at line 92 of file gnunet_testing_lib.h.

Referenced by GNUNET_TESTING_async_finish(), and run_finish().

◆ notify_finished_cls

void* GNUNET_TESTING_AsyncContext::notify_finished_cls

Closure for notify_finished.

Definition at line 97 of file gnunet_testing_lib.h.

Referenced by GNUNET_TESTING_async_finish(), and run_finish().

◆ finished

enum GNUNET_GenericReturnValue GNUNET_TESTING_AsyncContext::finished

Indication if the command finished (GNUNET_OK).

GNUNET_NO if it did not finish, GNUNET_SYSERR if it failed.

Definition at line 104 of file gnunet_testing_lib.h.

Referenced by GNUNET_TESTING_async_fail(), GNUNET_TESTING_async_finish(), GNUNET_TESTING_interpreter_run_cmd_(), and run_finish().

◆ next_called

bool GNUNET_TESTING_AsyncContext::next_called

Set to true if interpreter_next() has already been called for this command.

Definition at line 110 of file gnunet_testing_lib.h.

Referenced by GNUNET_TESTING_async_finish(), and GNUNET_TESTING_interpreter_run_cmd_().


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