addConstraint(xmlNodePtr cib, cibConstraint *xml_node)
addConstraint(xmlNodePtr cib, xmlNodePtr anXmlNode)
addConstraint(xmlNodePtr cib, cibConstraint *xml_node){	int add_res = CIBRES_OK;	const char * id = NULL;	const char * type = NULL;	xmlNodePtr new_parent = NULL;	FNIN();		id = xmlGetProp(xml_node, XML_ATTR_ID);	type = xmlGetProp(xml_node, XML_CIB_ATTR_CONTYPE);		if (id == NULL || strlen(id) < 1)		add_res = CIBRES_MISSING_ID;	else if (findConstraint(cib, ID(xml_node)) != NULL)		add_res = CIBRES_EXISTS;/* 	else if (type == NULL || strlen(type) < 1) *//* 		add_res = CIBRES_MISSING_TYPE; */	else {		new_parent = get_object_root(XML_CIB_TAG_CONSTRAINTS, cib);		if(new_parent == NULL) {			// create it?			add_res = CIBRES_CORRUPT;		} else {			add_node_copy(new_parent, xml_node);		}	}	FNRET(add_res);}