Project

General

Profile

Download (656 Bytes) Statistics
| Branch: | Revision:

root / ext / debian_apt / debian_apt.i @ ff29708e

1

    
2
%module "debian_apt"
3

    
4
%include "std_string.i"
5

    
6
%{
7
#include <apt-pkg/pkgcache.h>
8
#include <apt-pkg/debversion.h>
9
%}
10

    
11
using namespace std;
12

    
13
class pkgCache
14
{
15
   public:
16

    
17
   static const char *CompTypeDeb(unsigned char Comp);
18
   static const char *CompType(unsigned char Comp);
19
   static const char *DepType(unsigned char Dep);
20

    
21
   pkgCache(MMap *Map,bool DoMap = true);
22
};
23

    
24
class debVersioningSystem : public pkgVersioningSystem
25
{     
26
   public:
27

    
28
   int CmpVersion(string A,string B);
29
   bool CheckDep(const char *PkgVer,int Op,const char *DepVer);
30
   string UpstreamVersion(const char *A);
31

    
32
   debVersioningSystem();
33
};
34

    
35
extern debVersioningSystem debVS;
36

    
(1-1/4)