]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.h
Merge branch 'feature/popen' into feature/apt-install-deb
[apt.git] / apt-pkg / sourcelist.h
index af75693754ded819e1cf598a77ea1328147d8368..4943dd32acb93f50ca075f3de6fd184b745a22b9 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <apt-pkg/pkgcache.h>
 #include <apt-pkg/cacheiterators.h>
+#include <apt-pkg/macros.h>
 
 #include <time.h>
 
@@ -63,7 +64,7 @@ class pkgSourceList
       // Global list of Items supported
       static Type **GlobalList;
       static unsigned long GlobalListLen;
-      static Type *GetType(const char *Type);
+      static Type *GetType(const char *Type) APT_PURE;
 
       const char *Name;
       const char *Label;
@@ -115,6 +116,11 @@ class pkgSourceList
    // query last-modified time
    time_t GetLastModifiedTime();
 
+   // Add custom metaIndex (e.g. local files)
+   void Add(metaIndex *mi) {
+      SrcList.push_back(mi);
+   }
+
    pkgSourceList();
    pkgSourceList(std::string File);
    ~pkgSourceList();