action_t *action = (action_t*)crm_malloc(sizeof(action_t)); action->id   = action_id++; action->rsc  = rsc; action->task = task; action->node = NULL;  action->actions_before   = NULL; action->actions_after    = NULL; action->failure_is_fatal = TRUE; action->discard    = FALSE; action->runnable   = TRUE; action->processed  = FALSE; action->optional   = TRUE; action->seen_count = 0; action->timeout = 0; action->args = create_xml_node(NULL, "args");
action_t *action = NULL;
action_new(resource_t *rsc, enum action_tasks task){	action_t *action = (action_t*)crm_malloc(sizeof(action_t));	action->id   = action_id++;	action->rsc  = rsc;	action->task = task;	action->node = NULL; /* fill node in later */	action->actions_before   = NULL;	action->actions_after    = NULL;	action->failure_is_fatal = TRUE;	action->discard    = FALSE;	action->runnable   = TRUE;	action->processed  = FALSE;	action->optional   = TRUE;	action->seen_count = 0;	action->timeout = 0;	action->args = create_xml_node(NULL, "args");		return action;}