~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to apt-pkg/cachefile.h

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-04-01 17:48:58 UTC
  • mfrom: (1.4.87 sid)
  • Revision ID: package-import@ubuntu.com-20140401174858-4mv29mm29zu22fn1
Tags: 1.0.1ubuntu1
merge with the debian/sid 1.0.1 version
(LP: #1302033)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef PKGLIB_CACHEFILE_H
18
18
#define PKGLIB_CACHEFILE_H
19
19
 
 
20
#include <stddef.h>
 
21
 
20
22
#include <apt-pkg/depcache.h>
21
23
#include <apt-pkg/macros.h>
 
24
#include <apt-pkg/pkgcache.h>
 
25
#include <apt-pkg/cacheiterators.h>
22
26
 
23
27
#ifndef APT_8_CLEANER_HEADERS
24
28
#include <apt-pkg/acquire.h>
26
30
#include <apt-pkg/sourcelist.h>
27
31
#endif
28
32
 
 
33
class MMap;
29
34
class pkgPolicy;
30
35
class pkgSourceList;
31
36
class OpProgress;
60
65
   inline unsigned char &operator [](pkgCache::DepIterator const &I) {return (*DCache)[I];};
61
66
 
62
67
   bool BuildCaches(OpProgress *Progress = NULL,bool WithLock = true);
63
 
   __deprecated bool BuildCaches(OpProgress &Progress,bool const &WithLock = true) { return BuildCaches(&Progress, WithLock); };
 
68
   APT_DEPRECATED bool BuildCaches(OpProgress &Progress,bool const &WithLock = true) { return BuildCaches(&Progress, WithLock); };
64
69
   bool BuildSourceList(OpProgress *Progress = NULL);
65
70
   bool BuildPolicy(OpProgress *Progress = NULL);
66
71
   bool BuildDepCache(OpProgress *Progress = NULL);
67
72
   bool Open(OpProgress *Progress = NULL, bool WithLock = true);
68
73
   inline bool ReadOnlyOpen(OpProgress *Progress = NULL) { return Open(Progress, false); };
69
 
   __deprecated bool Open(OpProgress &Progress,bool const &WithLock = true) { return Open(&Progress, WithLock); };
 
74
   APT_DEPRECATED bool Open(OpProgress &Progress,bool const &WithLock = true) { return Open(&Progress, WithLock); };
70
75
   static void RemoveCaches();
71
76
   void Close();
72
77