stage7(GListPtr resources, GListPtr actions, GListPtr ordering_constraints, GListPtr *action_sets)
stage7(GListPtr resources, GListPtr actions, GListPtr ordering_constraints)
stage7(GListPtr resources, GListPtr actions, GListPtr ordering_constraints,	GListPtr *action_sets){	int lpc;	int lpc2;	int lpc3;	action_wrapper_t *wrapper = NULL;	GListPtr list = NULL;	crm_info("Processing stage 7");	slist_iter(		order, order_constraint_t, ordering_constraints, lpc,		action_t *lh_action = order->lh_action;		action_t *rh_action = order->rh_action;		GListPtr lh_actions = NULL;		GListPtr rh_actions = NULL;		crm_verbose("Processing ordering constraint %d", order->id);		if(lh_action != NULL) {			lh_actions = g_list_append(NULL, lh_action);		} else if(lh_action == NULL && order->lh_rsc != NULL) {			if(order->strength == pecs_must) {				crm_debug("No RH-Side (%s/%s) found for constraint..."					  " creating",					  order->lh_rsc->id, task2text(order->lh_action_task));				action_new(order->lh_rsc, order->lh_action_task, NULL);			}						lh_actions = find_actions_type(				order->lh_rsc->actions, order->lh_action_task, NULL);			if(lh_actions == NULL) {				crm_debug("No LH-Side (%s/%s) found for constraint",					  order->lh_rsc->id,					  task2text(order->lh_action_task));				continue;			}		} else {			crm_warn("No LH-Side (%s) specified for constraint",				 task2text(order->lh_action_task));			continue;		}		if(rh_action != NULL) {			rh_actions = g_list_append(NULL, rh_action);		} else if(rh_action == NULL && order->rh_rsc != NULL) {			rh_actions = find_actions_type(				order->rh_rsc->actions, order->rh_action_task, NULL);			if(rh_actions == NULL) {				crm_debug("No RH-Side (%s/%s) found for constraint..."					  " ignoring",					  order->rh_rsc->id, task2text(order->rh_action_task));				continue;			}					}  else if(rh_action == NULL) {			crm_debug("No RH-Side (%s) specified for constraint..."				  " ignoring", task2text(order->rh_action_task));			continue;		} 						slist_iter(			lh_action_iter, action_t, lh_actions, lpc2,			slist_iter(				rh_action_iter, action_t, rh_actions, lpc3,				crm_verbose("%d Processing %d -> %d",					    order->id,					    lh_action_iter->id,					    rh_action_iter->id);				crm_debug_action(					print_action("LH (stage7)",						     lh_action_iter, FALSE));				crm_debug_action(					print_action("RH (stage7)",						     rh_action_iter, FALSE));				crm_malloc(wrapper, sizeof(action_wrapper_t));				if(wrapper != NULL) {					wrapper->action = rh_action_iter;					wrapper->strength = order->strength;										list = lh_action_iter->actions_after;					list = g_list_append(list, wrapper);					lh_action_iter->actions_after = list;				}								crm_malloc(wrapper, sizeof(action_wrapper_t));				if(wrapper != NULL) {					wrapper->action = lh_action_iter;					wrapper->strength = order->strength;										list = rh_action_iter->actions_before;					list = g_list_append(list, wrapper);					rh_action_iter->actions_before = list;				}				);			);		pe_free_shallow_adv(lh_actions, FALSE);		pe_free_shallow_adv(rh_actions, FALSE);		);	update_action_states(actions);	return TRUE;}