Lines Matching refs:cfg
159 int DNSConf_initctx(DNSConf *cfg) {
160 if (cfg == NULL)
163 if (cfg->confctx != NULL)
169 if (dns_c_ctx_new(ctx.mem, &cfg->confctx) != ISC_R_SUCCESS)
194 void DNSConf_setdirectory(DNSConf *cfg, const char *directory) {
198 if (!DNSConf_initctx(cfg))
203 dns_c_ctx_unsetdirectory(cfg->confctx);
206 dns_c_ctx_unsetdirectory(cfg->confctx);
208 dns_c_ctx_setdirectory(cfg->confctx, directory);
211 char *DNSConf_getdirectory(DNSConf *cfg) {
215 if (cfg == NULL || cfg->confctx == NULL)
218 tmpres = dns_c_ctx_getdirectory(cfg->confctx, &dir);
237 void DNSConf_settransfersin(DNSConf *cfg, unsigned int *transfersin) {
241 if (!DNSConf_initctx(cfg))
246 dns_c_ctx_unsettransfersin(cfg->confctx);
248 dns_c_ctx_settransfersin(cfg->confctx, transfersin);
251 unsigned int DNSConf_gettransfersin(DNSConf *cfg) {
255 if (cfg == NULL || cfg->confctx == NULL)
258 tmpres = dns_c_ctx_gettransfersin(cfg->confctx, &result);