HomePort
Functions
daemon.c File Reference
Include dependency graph for daemon.c:

Go to the source code of this file.

Functions

static hpd_error_t daemon_add_global_option (hpd_t *hpd, const char *name, int key, const char *arg, int flags, const char *doc)
 
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)
 
static hpd_error_t daemon_loop_create (hpd_t *hpd)
 
static void daemon_loop_destroy (hpd_t *hpd)
 
static void daemon_loop_run (hpd_t *hpd)
 
static hpd_error_t daemon_modules_create (const hpd_t *hpd)
 
static hpd_error_t daemon_modules_destroy (const hpd_t *hpd)
 
static hpd_error_t daemon_modules_start (hpd_t *hpd)
 
static hpd_error_t daemon_modules_stop (hpd_t *hpd)
 
static int daemon_on_parse_opt (int key, char *arg, struct argp_state *state)
 
static void daemon_on_signal (hpd_ev_loop_t *loop, ev_signal *w, int revents)
 
static hpd_error_t daemon_options_create (hpd_t *hpd)
 
static void daemon_options_destroy (hpd_t *hpd)
 
static hpd_error_t daemon_options_parse (hpd_t *hpd, int argc, char **argv)
 
static hpd_error_t daemon_runtime_create (hpd_t *hpd)
 
static hpd_error_t daemon_runtime_destroy (hpd_t *hpd)
 
hpd_error_t daemon_start (hpd_t *hpd, int argc, char *argv[])
 
hpd_error_t daemon_stop (const hpd_t *hpd)
 
static hpd_error_t daemon_watchers_stop (hpd_t *hpd)
 

Function Documentation

static hpd_error_t daemon_add_global_option ( hpd_t hpd,
const char *  name,
int  key,
const char *  arg,
int  flags,
const char *  doc 
)
static

Definition at line 104 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_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:

static hpd_error_t daemon_loop_create ( hpd_t hpd)
static

Definition at line 133 of file daemon.c.

Here is the caller graph for this function:

static void daemon_loop_destroy ( hpd_t hpd)
static

Definition at line 141 of file daemon.c.

Here is the caller graph for this function:

static void daemon_loop_run ( hpd_t hpd)
static

Definition at line 148 of file daemon.c.

Here is the caller graph for this function:

static hpd_error_t daemon_modules_create ( const hpd_t hpd)
static

Definition at line 163 of file daemon.c.

Here is the caller graph for this function:

static hpd_error_t daemon_modules_destroy ( const hpd_t hpd)
static

Definition at line 179 of file daemon.c.

Here is the caller graph for this function:

static hpd_error_t daemon_modules_start ( hpd_t hpd)
static

Definition at line 198 of file daemon.c.

Here is the caller graph for this function:

static hpd_error_t daemon_modules_stop ( hpd_t hpd)
static

Definition at line 217 of file daemon.c.

Here is the caller graph for this function:

static int daemon_on_parse_opt ( int  key,
char *  arg,
struct argp_state *  state 
)
static

Definition at line 43 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void daemon_on_signal ( hpd_ev_loop_t loop,
ev_signal *  w,
int  revents 
)
static

Definition at line 38 of file daemon.c.

Here is the caller graph for this function:

static hpd_error_t daemon_options_create ( hpd_t hpd)
static

Definition at line 236 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void daemon_options_destroy ( hpd_t hpd)
static

Definition at line 254 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t daemon_options_parse ( hpd_t hpd,
int  argc,
char **  argv 
)
static

Definition at line 271 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t daemon_runtime_create ( hpd_t hpd)
static

Definition at line 282 of file daemon.c.

Here is the caller graph for this function:

static hpd_error_t daemon_runtime_destroy ( hpd_t hpd)
static

Definition at line 294 of file daemon.c.

Here is the call graph for this function:

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:

static hpd_error_t daemon_watchers_stop ( hpd_t hpd)
static

Definition at line 307 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function: