GNUnet 0.21.1
GNUNET_TESTING_AsyncContext Struct Reference

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

#include <gnunet_testing_loop_lib.h>

Collaboration diagram for GNUNET_TESTING_AsyncContext:
[legend]

Data Fields

struct GNUNET_TESTING_Interpreteris
 Interpreter we are part of. More...
 
GNUNET_SCHEDULER_TaskCallback cont
 Function to call when done. More...
 
void * cont_cls
 Closure for cont. More...
 
enum GNUNET_GenericReturnValue finished
 Indication if the command finished (GNUNET_OK). More...
 

Detailed Description

State each asynchronous command must have in its closure.

Definition at line 61 of file gnunet_testing_loop_lib.h.

Field Documentation

◆ is

struct GNUNET_TESTING_Interpreter* GNUNET_TESTING_AsyncContext::is

Interpreter we are part of.

Definition at line 67 of file gnunet_testing_loop_lib.h.

Referenced by GNUNET_TESTING_async_fail(), interpreter_run(), and notify_connect().

◆ cont

GNUNET_SCHEDULER_TaskCallback GNUNET_TESTING_AsyncContext::cont

Function to call when done.

Definition at line 72 of file gnunet_testing_loop_lib.h.

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

◆ cont_cls

void* GNUNET_TESTING_AsyncContext::cont_cls

Closure for cont.

Definition at line 77 of file gnunet_testing_loop_lib.h.

Referenced by GNUNET_TESTING_async_fail(), GNUNET_TESTING_async_finish(), interpreter_run(), 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 84 of file gnunet_testing_loop_lib.h.

Referenced by GNUNET_TESTING_async_fail(), GNUNET_TESTING_async_finish(), GNUNET_TESTING_finish_barrier_(), interpreter_run(), and run_finish().


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