summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgrecords.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-11-30 00:39:04 -0800
committerSam Bingner <sam@bingner.com>2020-07-17 00:22:23 -1000
commitfd282b1e5334652827ad4d251e674322af73f2dc (patch)
tree32ff3487d1325764320631316bac5d4349efe4bc /apt-pkg/pkgrecords.h
parentaf440e7945c774ced305807d08418bd9cecc7c73 (diff)
The fastest way to get field values is as a range.
Diffstat (limited to 'apt-pkg/pkgrecords.h')
-rw-r--r--apt-pkg/pkgrecords.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h
index dec722330..f78a6229f 100644
--- a/apt-pkg/pkgrecords.h
+++ b/apt-pkg/pkgrecords.h
@@ -100,6 +100,9 @@ class pkgRecords::Parser /*{{{*/
// The record in binary form
virtual void GetRec(const char *&Start,const char *&Stop) {Start = Stop = 0;};
+ // Locate a tag
+ virtual bool Find(const char *Tag,const char *&Start, const char *&End) {Start = End = 0; return false;};
+
Parser();
virtual ~Parser();