X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1f46d14620a0b58a9239fa3faa59ba79a98f6c98..e6f0c9bca4b052d20a2e48ce9715b89e187b671a:/apt-pkg/srcrecords.h?ds=sidebyside diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index 69b3cfd99..c68d374bb 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -105,8 +105,13 @@ class pkgSrcRecords // Reset the search bool Restart(); - // Locate a package by name - Parser *Find(const char *Package,bool const &SrcOnly = false); + // Step to the next SourcePackage and return pointer to the + // next SourceRecord. The pointer is owned by libapt. + const Parser* Step(); + + // Locate a package by name and return pointer to the Parser. + // The pointer is owned by libapt. + Parser* Find(const char *Package,bool const &SrcOnly = false); pkgSrcRecords(pkgSourceList &List); virtual ~pkgSrcRecords();