- // Locate a package by name
- Parser *Find(const char *Package,bool SrcOnly = false);
-
- pkgSrcRecords(pkgSourceList &List);
- ~pkgSrcRecords();
+ // 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);
+
+ explicit pkgSrcRecords(pkgSourceList &List);
+ virtual ~pkgSrcRecords();