if (findStatus(cib, ID(xml_node), INSTANCE(xml_node)) != NULL) FNRET(-1); FNRET(add_node_copy(cib, XML_CIB_TAG_STATUS, xml_node));
id = xmlGetProp(xml_node, XML_ATTR_ID); type = xmlGetProp(xml_node, XML_CIB_ATTR_NODETYPE); instance = xmlGetProp(xml_node, XML_CIB_ATTR_INSTANCE);  if (id == NULL || strlen(id) < 1) add_res = -1; else if (findStatus(cib, id, instance) != NULL) add_res = -2; else if (type == NULL || strlen(type) < 1) add_res = -3; else add_res = add_node_copy(cib, XML_CIB_TAG_STATUS, xml_node);  FNRET(add_res);
addStatus(xmlNodePtr cib, cibStatus *xml_node){	FNIN();    if (findStatus(cib, ID(xml_node), INSTANCE(xml_node)) != NULL) FNRET(-1);    FNRET(add_node_copy(cib, XML_CIB_TAG_STATUS, xml_node));}