HomePort
Data Structures | Macros | Functions | Variables
daemon_api_test.cpp File Reference
Include dependency graph for daemon_api_test.cpp:

Go to the source code of this file.

Data Structures

struct  module_data_t
 

Macros

#define CASE   hpd_daemon_api
 

Functions

static hpd_error_t on_create (void **data, const hpd_module_t *)
 
static hpd_error_t on_create_add_options (void **data, const hpd_module_t *context)
 
static hpd_error_t on_destroy (void *data)
 
static hpd_error_t on_parse_opt (void *data, const char *name, const char *)
 
static hpd_error_t on_start (void *data, hpd_t *hpd)
 
static hpd_error_t on_stop (void *data, hpd_t *hpd)
 
static void stop_hpd (hpd_ev_loop_t *loop, ev_timer *w, int revents)
 
 TEST (CASE, hpd_allocation)
 
 TEST (CASE, hpd_get_loop)
 
 TEST (CASE, hpd_run_1sec)
 
 TEST (CASE, module_allocation)
 
 TEST (CASE, module_run_1sec)
 
 TEST (CASE, option_no_call_1sec)
 
 TEST (CASE, option_call1_1sec)
 
 TEST (CASE, option_call2_1sec)
 

Variables

static module_data_tlast_module_data = NULL
 

Data Structure Documentation

struct module_data_t

Definition at line 34 of file daemon_api_test.cpp.

Collaboration diagram for module_data_t:
Data Fields
hpd_error_t add_option1
hpd_error_t add_option2
int create_called
int destroy_called
int next
int opt1_called
int opt2_called
int option_errors[21]
int parse_opt_called
int start_called
hpd_ev_loop_t * start_loop
int stop_called
hpd_ev_loop_t * stop_loop

Macro Definition Documentation

#define CASE   hpd_daemon_api

Definition at line 32 of file daemon_api_test.cpp.

Function Documentation

static hpd_error_t on_create ( void **  data,
const hpd_module_t  
)
static

Definition at line 52 of file daemon_api_test.cpp.

Here is the caller graph for this function:

static hpd_error_t on_create_add_options ( void **  data,
const hpd_module_t context 
)
static

Definition at line 62 of file daemon_api_test.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t on_destroy ( void *  data)
static

Definition at line 103 of file daemon_api_test.cpp.

Here is the caller graph for this function:

static hpd_error_t on_parse_opt ( void *  data,
const char *  name,
const char *   
)
static

Definition at line 126 of file daemon_api_test.cpp.

Here is the caller graph for this function:

static hpd_error_t on_start ( void *  data,
hpd_t hpd 
)
static

Definition at line 110 of file daemon_api_test.cpp.

Here is the caller graph for this function:

static hpd_error_t on_stop ( void *  data,
hpd_t hpd 
)
static

Definition at line 118 of file daemon_api_test.cpp.

Here is the caller graph for this function:

static void stop_hpd ( hpd_ev_loop_t loop,
ev_timer *  w,
int  revents 
)
static

Definition at line 135 of file daemon_api_test.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

TEST ( CASE  ,
hpd_allocation   
)

Definition at line 141 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
hpd_get_loop   
)

Definition at line 154 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
hpd_run_1sec   
)

Definition at line 164 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
module_allocation   
)

Definition at line 187 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
module_run_1sec   
)

Definition at line 213 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
option_no_call_1sec   
)

Definition at line 250 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
option_call1_1sec   
)

Definition at line 291 of file daemon_api_test.cpp.

Here is the call graph for this function:

TEST ( CASE  ,
option_call2_1sec   
)

Definition at line 335 of file daemon_api_test.cpp.

Here is the call graph for this function:

Variable Documentation

module_data_t* last_module_data = NULL
static

Definition at line 50 of file daemon_api_test.cpp.