Lines Matching defs:chg
63 static ns_conn_mgmt_t *proc_server_change(ns_server_status_change_t *chg,
1990 proc_server_change(ns_server_status_change_t *chg, ns_conn_mgmt_t *cmg)
2000 if (chg->config_changed == B_TRUE) {
2011 if ((cnt = chg->num_server) == 0)
2017 if (chg->changes[i] != NS_SERVER_DOWN)
2019 s = chg->servers[i];
2083 if (chg->changes[i] != NS_SERVER_UP)
2085 s = chg->servers[i];
2435 ns_server_status_change_t chg = { 0 };
2452 if (chg.servers != NULL)
2453 free(chg.servers);
2454 if (chg.changes != NULL)
2455 free(chg.changes);
2480 (void) memset(&chg, 0, sizeof (chg));
2537 chg.config_changed = B_TRUE;
2538 cmg = proc_server_change(&chg, cmg);
2551 chg.config_changed = B_TRUE;
2552 cmg = proc_server_change(&chg, cmg);
2557 chg.num_server = get_chg->server_count;
2559 servers = (char **)calloc(chg.num_server,
2565 status = (ns_server_status_t *)calloc(chg.num_server,
2607 chg.servers = servers;
2608 chg.changes = status;
2609 cmg = proc_server_change(&chg, cmg);