summaryrefslogtreecommitdiff
path: root/apt-pkg/srcrecords.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-06-09 09:06:07 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-06-09 09:57:58 +0200
commit462557017a0d8be321ca7d3eb96072f4db6a92ec (patch)
treef05733024a6b4463226efae5b262d19cc1d56751 /apt-pkg/srcrecords.h
parentb29599105ed9a5bb38b55cb066ef81256d66be41 (diff)
add pkgSrcRecords::Next() to step through all the pkgSrcRecords
Diffstat (limited to 'apt-pkg/srcrecords.h')
-rw-r--r--apt-pkg/srcrecords.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h
index 9915debfe..82460d70f 100644
--- a/apt-pkg/srcrecords.h
+++ b/apt-pkg/srcrecords.h
@@ -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();