*shutdown_list = g_slist_append(*shutdown_list, node);
*shutdown_list = g_list_append(*shutdown_list, node);
stage0(xmlNodePtr cib,       GSListPtr *resources,       GSListPtr *nodes, GSListPtr *node_constraints,       GSListPtr *actions, GSListPtr *action_constraints,       GSListPtr *stonith_list, GSListPtr *shutdown_list){	int lpc;	xmlNodePtr cib_nodes       = get_object_root(		XML_CIB_TAG_NODES,       cib);	xmlNodePtr cib_status      = get_object_root(		XML_CIB_TAG_STATUS,      cib);	xmlNodePtr cib_resources   = get_object_root(		XML_CIB_TAG_RESOURCES,   cib);	xmlNodePtr cib_constraints = get_object_root(		XML_CIB_TAG_CONSTRAINTS, cib);	/* reset remaining global variables */	max_valid_nodes = 0;	order_id = 1;	action_id = 1;		unpack_nodes(safe_val(NULL, cib_nodes, children), nodes);	unpack_resources(safe_val(NULL, cib_resources, children),			 resources, actions, action_constraints, *nodes);	unpack_status(safe_val(NULL, cib_status, children),		      *nodes, *resources, node_constraints);	unpack_constraints(safe_val(NULL, cib_constraints, children),			   *nodes, *resources,			   node_constraints, action_constraints);	slist_iter(		node, node_t, *nodes, lpc,		if(node->details->shutdown) {			*shutdown_list = g_slist_append(*shutdown_list, node);			crm_verbose("Scheduling Node %s for shutdown",			       node->details->id);		} else if(node->details->unclean) {			*stonith_list = g_slist_append(*stonith_list, node);			crm_verbose("Scheduling Node %s for STONITH",			       node->details->id);		}		);		return TRUE;}