// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: pkgsystem.h,v 1.2 2001/02/20 07:03:17 jgg Exp $
+// $Id: pkgsystem.h,v 1.6 2002/11/11 06:55:50 doogie Exp $
/* ######################################################################
System - Abstraction for running on different systems.
#endif
#include <apt-pkg/depcache.h>
-#include <vector.h>
+#include <vector>
class pkgPackageManager;
class pkgVersioningSystem;
/* Load environment specific configuration and perform any other setup
necessary */
- virtual bool Initialize(Configuration &Cnf) {return true;};
+ virtual bool Initialize(Configuration &/*Cnf*/) {return true;};
/* Type is some kind of Globally Unique way of differentiating
archive file types.. */
virtual bool ArchiveSupported(const char *Type) = 0;
// Return a list of system index files..
- virtual bool AddStatusFiles(vector<pkgIndexFile *> &List) = 0;
+ virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List) = 0;
+ virtual bool FindIndex(pkgCache::PkgFileIterator File,
+ pkgIndexFile *&Found) const = 0;
/* Evauluate how 'right' we are for this system based on the filesystem
etc.. */
- virtual signed Score(Configuration const &Cnf) {return 0;};
+ virtual signed Score(Configuration const &/*Cnf*/) {return 0;};
pkgSystem();
virtual ~pkgSystem() {};