FNRET(addNode(cib, XML_CIB_TAG_RESOURCES, xml_node));
FNRET(add_node_copy(cib, XML_CIB_TAG_RESOURCES, xml_node));
addResource(xmlNodePtr cib, cibResource *xml_node){    if(findResource(cib, ID(xml_node)) != NULL) FNRET(-1);    // make these global constants    FNRET(addNode(cib, XML_CIB_TAG_RESOURCES, xml_node));}