HomePort
Data Structures | Typedefs | Functions
daemon.h File Reference
Include dependency graph for daemon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hpd
 
struct  hpd_ev_async
 
union  hpd_ev_async.__unnamed__
 
struct  hpd_ev_async.__unnamed__.__unnamed__
 
union  hpd_ev_async.__unnamed__.__unnamed__.__unnamed__
 
struct  hpd_ev_async.__unnamed__.__unnamed__.__unnamed__.__unnamed__
 
struct  hpd_module
 

Typedefs

typedef struct argp_option hpd_argp_option_t
 
typedef struct hpd_configuration hpd_configuration_t
 
typedef struct hpd_ev_async hpd_ev_async_t
 
typedef struct hpd_ev_asyncs hpd_ev_asyncs_t
 
typedef struct hpd_module hpd_module_t
 
typedef struct hpd_modules hpd_modules_t
 

Functions

hpd_error_t daemon_add_module (hpd_t *hpd, const char *id, const hpd_module_def_t *module_def)
 
hpd_error_t daemon_add_option (const hpd_module_t *context, const char *name, const char *arg, int flags, const char *doc)
 
hpd_error_t daemon_alloc (hpd_t **hpd)
 
hpd_error_t daemon_free (hpd_t *hpd)
 
hpd_error_t daemon_get_id (const hpd_module_t *context, const char **id)
 
hpd_error_t daemon_get_loop (const hpd_t *hpd, hpd_ev_loop_t **loop)
 
hpd_error_t daemon_start (hpd_t *hpd, int argc, char *argv[])
 
hpd_error_t daemon_stop (const hpd_t *hpd)
 
 TAILQ_HEAD (hpd_modules, hpd_module)
 
 TAILQ_HEAD (hpd_ev_asyncs, hpd_ev_async)
 

Data Structure Documentation

struct hpd

Definition at line 50 of file daemon.h.

Collaboration diagram for hpd:
Data Fields
char * argv0
hpd_ev_asyncs_t attached_watchers
hpd_ev_asyncs_t changed_watchers
hpd_configuration_t * configuration
hpd_ev_asyncs_t detached_watchers
hpd_ev_loop_t * loop
int module_options_count
hpd_modules_t modules
const hpd_module_t ** option2module
const char ** option2name
hpd_argp_option_t * options
int options_count
hpd_ev_asyncs_t request_watchers
hpd_ev_asyncs_t respond_watchers
ev_signal sigint_watcher
ev_signal sigterm_watcher
union hpd_ev_async.__unnamed__

Definition at line 73 of file daemon.h.

Collaboration diagram for hpd_ev_async.__unnamed__:
Data Fields
__unnamed__ __unnamed__
hpd_request_t * request
hpd_response_t * response
struct hpd_ev_async.__unnamed__.__unnamed__

Definition at line 76 of file daemon.h.

Collaboration diagram for hpd_ev_async.__unnamed__.__unnamed__:
Data Fields
__unnamed__ __unnamed__
hpd_t * hpd
union hpd_ev_async.__unnamed__.__unnamed__.__unnamed__

Definition at line 78 of file daemon.h.

Collaboration diagram for hpd_ev_async.__unnamed__.__unnamed__.__unnamed__:
Data Fields
__unnamed__ __unnamed__
hpd_device_id_t * device
struct hpd_ev_async.__unnamed__.__unnamed__.__unnamed__.__unnamed__

Definition at line 79 of file daemon.h.

Collaboration diagram for hpd_ev_async.__unnamed__.__unnamed__.__unnamed__.__unnamed__:
Data Fields
hpd_service_id_t * service
hpd_value_t * value

Typedef Documentation

typedef struct argp_option hpd_argp_option_t

Definition at line 43 of file daemon.h.

Definition at line 41 of file daemon.h.

typedef struct hpd_ev_async hpd_ev_async_t

Definition at line 44 of file daemon.h.

typedef struct hpd_ev_asyncs hpd_ev_asyncs_t

Definition at line 45 of file daemon.h.

typedef struct hpd_module hpd_module_t
typedef struct hpd_modules hpd_modules_t

Definition at line 42 of file daemon.h.

Function Documentation

hpd_error_t daemon_add_module ( hpd_t hpd,
const char *  id,
const hpd_module_def_t module_def 
)

Definition at line 394 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t daemon_add_option ( const hpd_module_t context,
const char *  name,
const char *  arg,
int  flags,
const char *  doc 
)

Definition at line 409 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t daemon_alloc ( hpd_t **  hpd)

Definition at line 359 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t daemon_free ( hpd_t hpd)

Definition at line 382 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t daemon_get_id ( const hpd_module_t context,
const char **  id 
)

Definition at line 498 of file daemon.c.

Here is the caller graph for this function:

hpd_error_t daemon_get_loop ( const hpd_t hpd,
hpd_ev_loop_t **  loop 
)

Definition at line 504 of file daemon.c.

Here is the caller graph for this function:

hpd_error_t daemon_start ( hpd_t hpd,
int  argc,
char *  argv[] 
)

Definition at line 446 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t daemon_stop ( const hpd_t hpd)

Definition at line 492 of file daemon.c.

Here is the caller graph for this function:

TAILQ_HEAD ( hpd_modules  ,
hpd_module   
)
TAILQ_HEAD ( hpd_ev_asyncs  ,
hpd_ev_async   
)