]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.h
fix -Wmissing-field-initializers warnings
[apt.git] / apt-pkg / sourcelist.h
index 03e29ec345f16dbd91b5095591faed70acd9cf67..0ccb4aa0052c8f7311ac4b14d778207e5df6d892 100644 (file)
@@ -31,6 +31,7 @@
 #include <vector>
 #include <map>
 #include <apt-pkg/pkgcache.h>
+#include <apt-pkg/tagfile.h>
 
 #ifndef APT_8_CLEANER_HEADERS
 #include <apt-pkg/metaindex.h>
@@ -59,11 +60,15 @@ class pkgSourceList
       const char *Name;
       const char *Label;
 
-      bool FixupURI(string &URI) const;
+      bool FixupURI(std::string &URI) const;
+      virtual bool ParseStanza(std::vector<metaIndex *> &List,
+                               pkgTagSection &Tags,
+                               int stanza_n,
+                               FileFd &Fd);
       virtual bool ParseLine(std::vector<metaIndex *> &List,
                             const char *Buffer,
                             unsigned long const &CurLine,std::string const &File) const;
-      virtual bool CreateItem(vector<metaIndex *> &List,std::string const &URI,
+      virtual bool CreateItem(std::vector<metaIndex *> &List,std::string const &URI,
                              std::string const &Dist,std::string const &Section,
                              std::map<std::string, std::string> const &Options) const = 0;
       Type();
@@ -75,7 +80,10 @@ class pkgSourceList
    protected:
 
    std::vector<metaIndex *> SrcList;
-   
+
+   int ParseFileDeb822(std::string File);
+   bool ParseFileOldStyle(std::string File);
+
    public:
 
    bool ReadMainList();