60 if (strcmp(module->
id,
id) == 0)
71 size_t name_index = strlen(context->
id)+1;
73 if (name_index < strlen(hpd->
options[i].name) && strcmp(&hpd->
options[i].name[name_index], name) == 0)
#define LOG_RETURN_E_NULL()
hpd_error_t hpd_start(hpd_t *hpd, int argc, char *argv[])
hpd_error_t daemon_stop(const hpd_t *hpd)
hpd_error_t hpd_get_loop(hpd_t *hpd, hpd_ev_loop_t **loop)
#define LOG_RETURN_HPD_STOPPED()
hpd_error_t hpd_alloc(hpd_t **hpd)
[hpd_t functions]
hpd_error_t daemon_get_loop(const hpd_t *hpd, hpd_ev_loop_t **loop)
hpd_error_t hpd_module_get_id(const hpd_module_t *context, const char **id)
hpd_error_t daemon_get_id(const hpd_module_t *context, const char **id)
hpd_argp_option_t * options
hpd_error_t daemon_start(hpd_t *hpd, int argc, char *argv[])
hpd_configuration_t * configuration
hpd_error_t daemon_free(hpd_t *hpd)
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_add_module(hpd_t *hpd, const char *id, const hpd_module_def_t *module_def)
enum hpd_error hpd_error_t
[Application API Callbacks]
hpd_error_t hpd_stop(hpd_t *hpd)
#define LOG_RETURN(E, FMT,...)
hpd_error_t hpd_free(hpd_t *hpd)
static struct ev_loop * loop
hpd_error_t hpd_module_add_option(const hpd_module_t *context, const char *name, const char *arg, int flags, const char *doc)
[hpd_t functions]
hpd_error_t hpd_module(hpd_t *hpd, const char *id, const hpd_module_def_t *module_def)
struct ev_loop hpd_ev_loop_t
hpd_error_t daemon_alloc(hpd_t **hpd)