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); } else if(node->details->unclean) { *stonith_list = g_slist_append(*stonith_list, node); } );
stage0(xmlNodePtr cib){	xmlNodePtr cib_nodes       = get_object_root("nodes",       cib);	xmlNodePtr cib_status      = get_object_root("status",      cib);	xmlNodePtr cib_resources   = get_object_root("resources",   cib);	xmlNodePtr cib_constraints = get_object_root("constraints", cib);	unpack_nodes      (safe_val(NULL, cib_nodes,       children));	unpack_resources  (safe_val(NULL, cib_resources,   children));	unpack_status     (safe_val(NULL, cib_status,      children));	unpack_constraints(safe_val(NULL, cib_constraints, children));	return TRUE;} 