xmlSetProp(new_con, XML_CIB_ATTR_CONTYPE, CIB_VAL_CONTYPE_BLOCK); xmlSetProp(new_con, XML_CIB_ATTR_RESID1, res_id_1); xmlSetProp(new_con, XML_CIB_ATTR_CLEAR, expires);
set_xml_property_copy(new_con, XML_CIB_ATTR_CONTYPE, CIB_VAL_CONTYPE_BLOCK); set_xml_property_copy(new_con, XML_CIB_ATTR_RESID1, res_id_1); set_xml_property_copy(new_con, XML_CIB_ATTR_CLEAR, expires);
createInternalConstraint(const char *res_id_1, const char *instance, const char *node_id, const char *expires){    char *id = (char*)ha_malloc(256*(sizeof(char)));    sprintf(id, "failed-%s-%s-%s", node_id, res_id_1, instance);        cibConstraint *new_con = newConstraint(id);    xmlSetProp(new_con, XML_CIB_ATTR_CONTYPE, CIB_VAL_CONTYPE_BLOCK);    xmlSetProp(new_con, XML_CIB_ATTR_RESID1, res_id_1);    xmlSetProp(new_con, XML_CIB_ATTR_CLEAR, expires);    xmlNodePtr node_entry = xmlNewNode(NULL, XML_CIB_TAG_NVPAIR);			    xmlSetProp(node_entry, XML_ATTR_ID, "blockHost");//			xmlSetProp(node_entry, XML_CIB_ATTR_VARTYPE, subtype);    xmlSetProp(node_entry, XML_CIB_ATTR_VARVALUE, node_id);    xmlSetProp(node_entry, XML_CIB_ATTR_ACTION, "add");    xmlAddChild(new_con, node_entry);        FNRET(new_con);}