MOBI_RET mobi_xml_write_opfmeta(xmlTextWriterPtr writer, const OPFmeta **meta) {
    if (meta) {
        size_t i = 0;
        while (i < OPF_META_MAX_TAGS) {
            if (meta[i] == NULL) {
                break;
            }
            MOBI_RET ret = mobi_xml_write_meta(writer, meta[i]->name, meta[i]->content);
            if (ret != MOBI_SUCCESS) {
                return ret;
            }
            i++;
        }
    }
    return MOBI_SUCCESS;
}
MOBI_RET mobi_xml_write_opfmeta(xmlTextWriterPtr writer, const OPFmeta **meta) {
    if (meta) {
        size_t i = 0;
        while (i < OPF_META_MAX_TAGS) {
            if (meta[i] == NULL) {
                break;
            }
            MOBI_RET ret = mobi_xml_write_meta(writer, meta[i]->name, meta[i]->content);
            if (ret != MOBI_SUCCESS) {
                return ret;
            }
            i++;
        }
    }
    return MOBI_SUCCESS;
}