xmlSetProp(new_con, XML_CIB_ATTR_CONTYPE, type); xmlSetProp(new_con, XML_CIB_ATTR_RESID1, res_id_1); xmlSetProp(new_con, XML_CIB_ATTR_RESID2, res_id_2);
set_xml_property_copy(new_con, XML_CIB_ATTR_CONTYPE, type); set_xml_property_copy(new_con, XML_CIB_ATTR_RESID1, res_id_1); set_xml_property_copy(new_con, XML_CIB_ATTR_RESID2, res_id_2);
createSimpleConstraint(const char *id, const char *type, const char *res_id_1, const char *res_id_2){    cibConstraint *new_con = newConstraint(id);    xmlSetProp(new_con, XML_CIB_ATTR_CONTYPE, type);    xmlSetProp(new_con, XML_CIB_ATTR_RESID1, res_id_1);    xmlSetProp(new_con, XML_CIB_ATTR_RESID2, res_id_2);    FNRET(new_con);}