Lines Matching defs:xconf

578 	struct uw_conf	*xconf;
580 if ((xconf = parse_config(conffile)) == NULL)
583 if (main_imsg_send_config(xconf) == -1)
586 merge_config(main_conf, xconf);
595 main_imsg_send_config(struct uw_conf *xconf)
601 if (main_sendall(IMSG_RECONF_CONF, xconf, sizeof(*xconf)) == -1)
604 if (xconf->blocklist_file != NULL) {
606 xconf->blocklist_file, strlen(xconf->blocklist_file) + 1)
612 TAILQ_FOREACH(uw_forwarder, &xconf->uw_forwarder_list, entry) {
619 TAILQ_FOREACH(uw_forwarder, &xconf->uw_dot_forwarder_list,
625 RB_FOREACH(force_entry, force_tree, &xconf->force) {
649 merge_config(struct uw_conf *conf, struct uw_conf *xconf)
672 memcpy(&conf->enabled_resolvers, &xconf->enabled_resolvers,
675 memcpy(&conf->res_pref, &xconf->res_pref,
679 conf->blocklist_file = xconf->blocklist_file;
680 conf->blocklist_log = xconf->blocklist_log;
683 TAILQ_CONCAT(&conf->uw_forwarder_list, &xconf->uw_forwarder_list,
686 &xconf->uw_dot_forwarder_list, entry);
688 RB_FOREACH_SAFE(n, force_tree, &xconf->force, nxt) {
689 RB_REMOVE(force_tree, &xconf->force, n);
693 free(xconf);
699 struct uw_conf *xconf;
701 xconf = calloc(1, sizeof(*xconf));
702 if (xconf == NULL)
705 TAILQ_INIT(&xconf->uw_forwarder_list);
706 TAILQ_INIT(&xconf->uw_dot_forwarder_list);
708 RB_INIT(&xconf->force);
710 return (xconf);
716 struct uw_conf *xconf;
719 xconf = config_new_empty();
720 merge_config(conf, xconf);
883 imsg_receive_config(struct imsg *imsg, struct uw_conf **xconf)
889 nconf = *xconf;
899 if ((*xconf = malloc(sizeof(struct uw_conf))) == NULL)
901 nconf = *xconf;