child_starting = TRUE;
void incarnation_create_actions(resource_t *rsc, pe_working_set_t *data_set){	gboolean child_starting = FALSE;	gboolean child_stopping = FALSE;	resource_t *last_start_rsc = NULL;	resource_t *last_stop_rsc = NULL;	incarnation_variant_data_t *incarnation_data = NULL;	get_incarnation_variant_data(incarnation_data, rsc);		slist_iter(		child_rsc, resource_t, incarnation_data->child_list, lpc,		child_rsc->fns->create_actions(child_rsc, data_set);		if(child_rsc->starting) {			child_starting = TRUE;			last_start_rsc = child_rsc;		}		if(child_rsc->stopping) {			child_stopping = TRUE;			last_stop_rsc = child_rsc;		}		);	if(child_starting) {		rsc->starting = TRUE;		start_action(incarnation_data->self, NULL);		custom_action(incarnation_data->self, started_key(rsc),			      CRMD_ACTION_STARTED, NULL, data_set);		child_starting_constraints(			incarnation_data, pe_ordering_optional,			NULL, last_start_rsc, data_set);	}	if(child_stopping) {		rsc->stopping = TRUE;		stop_action(incarnation_data->self, NULL);		custom_action(incarnation_data->self, stopped_key(rsc),			      CRMD_ACTION_STOPPED, NULL, data_set);		child_stopping_constraints(			incarnation_data, pe_ordering_optional,			NULL, last_stop_rsc, data_set);	}		slist_iter(		action, action_t, incarnation_data->self->actions, lpc,		action->pseudo = TRUE;		action->optional = TRUE;		);}