new_con 1237 pengine/constraints.c rsc_colocation_t *new_con = NULL; new_con 1248 pengine/constraints.c new_con = calloc(1, sizeof(rsc_colocation_t)); new_con 1249 pengine/constraints.c if (new_con == NULL) { new_con 1261 pengine/constraints.c new_con->id = id; new_con 1262 pengine/constraints.c new_con->rsc_lh = rsc_lh; new_con 1263 pengine/constraints.c new_con->rsc_rh = rsc_rh; new_con 1264 pengine/constraints.c new_con->score = score; new_con 1265 pengine/constraints.c new_con->role_lh = text2role(state_lh); new_con 1266 pengine/constraints.c new_con->role_rh = text2role(state_rh); new_con 1267 pengine/constraints.c new_con->node_attribute = node_attr; new_con 1275 pengine/constraints.c rsc_lh->rsc_cons = g_list_insert_sorted(rsc_lh->rsc_cons, new_con, sort_cons_priority_rh); new_con 1278 pengine/constraints.c g_list_insert_sorted(rsc_rh->rsc_cons_lhs, new_con, sort_cons_priority_lh); new_con 1280 pengine/constraints.c data_set->colocation_constraints = g_list_append(data_set->colocation_constraints, new_con); new_con 1283 pengine/constraints.c anti_colocation_order(rsc_lh, new_con->role_lh, rsc_rh, new_con->role_rh, data_set); new_con 1284 pengine/constraints.c anti_colocation_order(rsc_rh, new_con->role_rh, rsc_lh, new_con->role_lh, data_set); new_con 67 pengine/utils.c rsc_to_node_t *new_con = NULL; new_con 77 pengine/utils.c new_con = calloc(1, sizeof(rsc_to_node_t)); new_con 78 pengine/utils.c if (new_con != NULL) { new_con 79 pengine/utils.c new_con->id = strdup(id); new_con 80 pengine/utils.c new_con->rsc_lh = rsc; new_con 81 pengine/utils.c new_con->node_list_rh = NULL; new_con 82 pengine/utils.c new_con->role_filter = RSC_ROLE_UNKNOWN; new_con 86 pengine/utils.c new_con->discover_mode = pe_discover_always; new_con 88 pengine/utils.c new_con->discover_mode = pe_discover_never; new_con 90 pengine/utils.c new_con->discover_mode = pe_discover_exclusive; new_con 100 pengine/utils.c new_con->node_list_rh = g_list_prepend(NULL, copy); new_con 103 pengine/utils.c data_set->placement_constraints = g_list_prepend(data_set->placement_constraints, new_con); new_con 104 pengine/utils.c rsc->rsc_location = g_list_prepend(rsc->rsc_location, new_con); new_con 107 pengine/utils.c return new_con;