summaryrefslogtreecommitdiff
path: root/apt-pkg/metaindex.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-06-10 23:53:36 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-06-10 23:53:36 +0200
commit261727f05ca7ff7d9d6d9b8927cb5c6ad293ebce (patch)
tree2d7a6b23747b42ed35044048ea610ef8b1744737 /apt-pkg/metaindex.h
parentdcbbb14df8c9a8a146697720874e9425c4b33792 (diff)
rename Calculate- to GetIndexTargets and use it as official API
We need a general way to get from a sources.list entry to IndexTargets and with this change we can move from pkgSourceList over the list of metaIndexes it includes to the IndexTargets each metaIndex can have. Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/metaindex.h')
-rw-r--r--apt-pkg/metaindex.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h
index 6c3d2880b..4e5de8be0 100644
--- a/apt-pkg/metaindex.h
+++ b/apt-pkg/metaindex.h
@@ -22,6 +22,7 @@ using std::string;
#endif
class pkgAcquire;
+class IndexTarget;
class metaIndex
{
@@ -40,16 +41,13 @@ class metaIndex
virtual const char* GetType() const {return Type;}
// interface to to query it
-#if APT_PKG_ABI >= 413
/** \return the path of the local file (or "" if its not available) */
virtual std::string LocalFileName() const;
-#else
- std::string LocalFileName() const;
-#endif
// Interface for acquire
virtual std::string ArchiveURI(std::string const& File) const = 0;
virtual bool GetIndexes(pkgAcquire *Owner, bool const &GetAll=false) const = 0;
+ virtual std::vector<IndexTarget> GetIndexTargets() const = 0;
virtual std::vector<pkgIndexFile *> *GetIndexFiles() = 0;
virtual bool IsTrusted() const = 0;