]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/srcrecords.h
add pkgSrcRecords::Next() to step through all the pkgSrcRecords
[apt.git] / apt-pkg / srcrecords.h
index 9915debfe4a87e13093192e71db380ded84d7a45..82460d70f2a306b0ad6059ba883ed075664c1287 100644 (file)
@@ -95,8 +95,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* Next();
+
+   // 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();