Lines Matching defs:nsw_cfg

84 	nscd_nsw_config_t	*nsw_cfg = *(nscd_nsw_config_t **)data;
88 (me, "freeing nscd nsw config %p \n", nsw_cfg);
89 if (nsw_cfg == NULL)
92 if (nsw_cfg->db_name != NULL)
93 free(nsw_cfg->db_name);
94 if (nsw_cfg->nsw_cfg_str != NULL)
95 free(nsw_cfg->nsw_cfg_str);
96 if (nsw_cfg->nsw_config != NULL)
97 (void) __nsw_freeconfig_v1(nsw_cfg->nsw_config);
98 if (nsw_cfg->src_idx != NULL)
99 free(nsw_cfg->src_idx);
101 free(nsw_cfg);
116 nscd_nsw_config_t **nsw_cfg;
126 if ((nsw_cfg = nscd_nsw_config[i]) == NULL)
130 (nscd_acc_data_t *)nsw_cfg, NULL);
187 nscd_nsw_config_t *nsw_cfg;
215 nsw_cfg = *nscd_nsw_config[i];
222 for (bf = nsw_cfg->fe_params.finders; bf != 0; bf = bf->next) {
293 nscd_nsw_config_t *nsw_cfg = NULL;
331 nsw_cfg = calloc(1, sizeof (nscd_nsw_config_t));
332 if (nsw_cfg == NULL) {
341 nsw_cfg->max_src = maxsrc;
407 (me, "number of nsw sources = %d\n", nsw_cfg->max_src);
423 *nsw_cfg_p = nsw_cfg;
429 nsw_cfg->db_name = strdup(dbn);
430 nsw_cfg->nsw_cfg_str = strdup(cfgstr);
431 if (nsw_cfg->db_name == NULL || nsw_cfg->nsw_cfg_str == NULL) {
438 nsw_cfg->db_name, nsw_cfg->nsw_cfg_str);
440 nsw_cfg->nsw_config = swcfg;
441 nsw_cfg->src_idx = src_idx_a;
447 nsw_cfg->fe_params.max_active_per_src = 10;
448 nsw_cfg->fe_params.max_dormant_per_src = 1;
449 nsw_cfg->fe_params.finders = _nscd_nss_finders;
451 nsw_cfg->fe_params = params->p;
456 * this nsw_cfg is not meant to last long, no need
460 nsw_cfg->nobase = 1;
464 (void) (nscd_nss_db_initf[dbi])(&nsw_cfg->fe_params);
519 if (nsw_cfg != NULL) {
520 if (nsw_cfg->db_name != NULL)
521 free(nsw_cfg->db_name);
522 if (nsw_cfg->nsw_cfg_str != NULL)
523 free(nsw_cfg->nsw_cfg_str);
524 free(nsw_cfg);
536 nscd_nsw_config_t *nsw_cfg = NULL;
577 nsw_cfg = calloc(1, sizeof (nscd_nsw_config_t));
578 if (nsw_cfg == NULL) {
584 (me, "nsw config structure %pallocated\n", nsw_cfg);
586 nsw_cfg->db_name = strdup(NSCD_NSW_DB_NAME(dbi));
587 if (nsw_cfg->db_name == NULL) {
597 nsw_cfg->fe_params.max_active_per_src = 10;
598 nsw_cfg->fe_params.max_dormant_per_src = 1;
599 nsw_cfg->fe_params.finders = _nscd_nss_finders;
600 (void) (nscd_nss_db_initf[dbi])(&nsw_cfg->fe_params);
605 *nsw_cfg_p = nsw_cfg;
611 (me, "nsw config %p activated\n", nsw_cfg);