Browse Source

add more dpointer placeholders

debian/1.8.y
Michael Vogt 12 years ago
parent
commit
be9b62f764
  1. 5
      apt-pkg/acquire-worker.h
  2. 3
      apt-pkg/algorithms.h
  3. 3
      apt-pkg/cachefile.h
  4. 2
      apt-pkg/cachefilter.h
  5. 3
      apt-pkg/clean.h
  6. 8
      apt-pkg/indexcopy.h
  7. 5
      apt-pkg/pkgrecords.h
  8. 2
      apt-pkg/srcrecords.h

5
apt-pkg/acquire-worker.h

@ -44,6 +44,9 @@
*/
class pkgAcquire::Worker : public WeakPointable
{
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
friend class pkgAcquire;
protected:
@ -314,7 +317,7 @@ class pkgAcquire::Worker : public WeakPointable
* Closes the file descriptors; if MethodConfig::NeedsCleanup is
* \b false, also rudely interrupts the worker with a SIGINT.
*/
~Worker();
virtual ~Worker();
};
/** @} */

3
apt-pkg/algorithms.h

@ -78,6 +78,9 @@ private:
/*}}}*/
class pkgProblemResolver /*{{{*/
{
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
pkgDepCache &Cache;
typedef pkgCache::PkgIterator PkgIterator;
typedef pkgCache::VerIterator VerIterator;

3
apt-pkg/cachefile.h

@ -25,6 +25,9 @@
class pkgCacheFile
{
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
protected:
MMap *Map;

2
apt-pkg/cachefilter.h

@ -16,6 +16,8 @@ namespace APT {
namespace CacheFilter {
// PackageNameMatchesRegEx /*{{{*/
class PackageNameMatchesRegEx {
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
regex_t* pattern;
public:
PackageNameMatchesRegEx(std::string const &Pattern);

3
apt-pkg/clean.h

@ -15,6 +15,9 @@
class pkgArchiveCleaner
{
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
protected:
virtual void Erase(const char * /*File*/,string /*Pkg*/,string /*Ver*/,struct stat & /*St*/) {};

8
apt-pkg/indexcopy.h

@ -24,6 +24,9 @@ class pkgCdromStatus;
class IndexCopy /*{{{*/
{
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
protected:
pkgTagSection *Section;
@ -55,7 +58,6 @@ class PackageCopy : public IndexCopy /*{{{*/
virtual const char *GetFileName() {return "Packages";};
virtual const char *Type() {return "Package";};
public:
};
/*}}}*/
class SourceCopy : public IndexCopy /*{{{*/
@ -67,7 +69,6 @@ class SourceCopy : public IndexCopy /*{{{*/
virtual const char *GetFileName() {return "Sources";};
virtual const char *Type() {return "Source";};
public:
};
/*}}}*/
class TranslationsCopy /*{{{*/
@ -82,6 +83,9 @@ class TranslationsCopy /*{{{*/
/*}}}*/
class SigVerify /*{{{*/
{
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
bool Verify(string prefix,string file, indexRecords *records);
bool CopyMetaIndex(string CDROM, string CDName,
string prefix, string file);

5
apt-pkg/pkgrecords.h

@ -28,12 +28,13 @@ class pkgRecords /*{{{*/
class Parser;
private:
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
pkgCache &Cache;
std::vector<Parser *>Files;
public:
public:
// Lookup function
Parser &Lookup(pkgCache::VerFileIterator const &Ver);
Parser &Lookup(pkgCache::DescFileIterator const &Desc);

2
apt-pkg/srcrecords.h

@ -79,6 +79,8 @@ class pkgSrcRecords
};
private:
/** \brief dpointer placeholder (for later in case we need it) */
void *d;
// The list of files and the current parser pointer
vector<Parser*> Files;

Loading…
Cancel
Save