Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleš Matěj <amatej@redhat.com>2022-02-23 11:13:27 +0300
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>2022-03-07 17:55:06 +0300
commit3ab81646a3ffdf30addb3a356b7fdefcdb0910d2 (patch)
treef23dc1ef2a15c006205b254acbbc6b4107fc1a33
parent2cf2d9f83b269bd570bca69c03c94251b080e5dd (diff)
Enhance cr_xml_parse_main_metadata_together doc string
-rw-r--r--src/xml_parser.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/xml_parser.h b/src/xml_parser.h
index c8909a2..a81ce65 100644
--- a/src/xml_parser.h
+++ b/src/xml_parser.h
@@ -279,17 +279,21 @@ cr_xml_parse_updateinfo(const char *path,
GError **err);
/** Parse all 3 main metadata types (primary, filelists and other) at the same time.
- * Once a package is fully parsed pkgcb is called which transfers ownership of the package
- * to the user, cr_xml_parse_main_metadata_together no longer needs it and it can be freed.
+ * Once a package is fully parsed pkgcb is called, if a cr_Package wasn't provided using
+ * newpkgcb new cr_Package is created and its ownership is transferred to the user by the
+ * pkgcb call.
* This means we don't have store all the packages in memory at the same time, which
* significantly reduces the memory footprint.
* Input metadata files can be compressed.
+ * Metadata primary, filelists and other have to have the packages in the same order.
* @param primary_path Path to a primary xml file.
* @param filelists_path Path to a filelists xml file.
* @param other_path Path to an other xml file.
* @param newpkgcb Callback for a new package. Called when the new package
- * xml chunk is found and a package object to store
- * the data is needed.
+ * xml chunk is found and a package object to store the data
+ * is needed. If this callback is used, the user has full
+ * ownership of the package, it will not be freed if the
+ * parsing is interrupted or there is an error.
* @param newpkgcb_data User data for the newpkgcb.
* @param pkgcb Package callback. Called when a package is completely
* parsed containing information from all 3 main metadata