void eventd_core_config_reload(EventdCoreContext *context) { eventd_plugins_stop_all(); eventd_config_parse(context->config, context->system_mode); eventd_plugins_start_all(); }
EventdConfig * eventd_config_new(const gchar *arg_dir, gboolean system_mode) { EventdConfig *config; config = g_new0(EventdConfig, 1); config->arg_dir = arg_dir; config->actions = eventd_actions_new(); config->events = eventd_events_new(); config->gnutls_priorities_env = g_getenv("G_TLS_GNUTLS_PRIORITY"); eventd_config_parse(config, system_mode); return config; }