cr_safe_string_chunk_insert(repomd->chunk, tag));
}
+cr_RepomdRecord *
+cr_repomd_get_record(cr_Repomd *repomd, const char *type)
+{
+ if (!repomd || !type)
+ return NULL;
+
+ for (GSList *elem = repomd->records; elem; elem = g_slist_next(elem)) {
+ cr_RepomdRecord *rec = elem->data;
+ assert(rec);
+ if (!g_strcmp0(rec->type, type))
+ return rec;
+ }
+ return NULL;
+}
*/
void cr_repomd_add_content_tag(cr_Repomd *repomd, const char *tag);
+/** Get repomd record from the repomd object.
+ * @param repomd cr_Repomd object
+ * @param type Type of the record
+ * @return Pointer to a record of desired type or NULL
+ */
+cr_RepomdRecord *cr_repomd_get_record(cr_Repomd *repomd, const char *type);
+
/** Frees cr_Repomd object and all its cr_RepomdRecord objects
* @param repomd cr_Repomd object
*/