switch(order->rh_action_task) { case start_rsc: case started_rsc: case stop_rsc: case stopped_rsc: case monitor_rsc: break; default: crm_err("Task \"%s\" from ordering %d isnt a resource action", task2text(order->rh_action_task), order->id); return; }
void native_rsc_order_rh(	action_t *lh_action, resource_t *rsc, order_constraint_t *order){	GListPtr rh_actions = NULL;	action_t *rh_action = order->rh_action;	crm_verbose("Processing RH of ordering constraint %d", order->id);	switch(order->rh_action_task) {		case start_rsc:		case started_rsc:		case stop_rsc:		case stopped_rsc:		case monitor_rsc:			break;		default:			crm_err("Task \"%s\" from ordering %d isnt a resource action",				task2text(order->rh_action_task), order->id);			return;	}		if(rh_action != NULL) {		rh_actions = g_list_append(NULL, rh_action);	} else if(rh_action == NULL && rsc != NULL) {		rh_actions = find_actions(			rsc->actions, order->rh_action_task, NULL);		if(rh_actions == NULL) {			crm_devel("No RH-Side (%s/%s) found for constraint..."				  " ignoring",				  rsc->id, task2text(order->rh_action_task));			crm_devel("LH-Side was: (%s/%s)",				  order->lh_rsc?order->lh_rsc->id:order->lh_action?order->lh_action->rsc->id:"<NULL>",				  task2text(order->lh_action_task));			return;		}				}  else if(rh_action == NULL) {		crm_devel("No RH-Side (%s) specified for constraint..."			  " ignoring", task2text(order->rh_action_task));		crm_devel("LH-Side was: (%s/%s)",			  order->lh_rsc?order->lh_rsc->id:order->lh_action?order->lh_action->rsc->id:"<NULL>",			  task2text(order->lh_action_task));		return;	} 	slist_iter(		rh_action_iter, action_t, rh_actions, lpc,		order_actions(lh_action, rh_action_iter, order); 		);	pe_free_shallow_adv(rh_actions, FALSE);}