Project

General

Profile

Download (1.4 KB) Statistics
| Branch: | Revision:

root / ext / debian_apt / debian_apt.i @ bc82ca34

1
/*
2
 * Ruby-Debian, a Ruby interface for Debian packaging aspects
3
 * Copyright (c) 2009 Marc Dequènes (Duck) <Duck@DuckCorp.org>
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18

    
19
%module "debian_apt"
20

    
21
%include "std_string.i"
22

    
23
%{
24
#include <apt-pkg/pkgcache.h>
25
#include <apt-pkg/debversion.h>
26
%}
27

    
28
using namespace std;
29

    
30
class pkgCache
31
{
32
   public:
33

    
34
   static const char *CompTypeDeb(unsigned char Comp);
35
   static const char *CompType(unsigned char Comp);
36
   static const char *DepType(unsigned char Dep);
37

    
38
   pkgCache(MMap *Map,bool DoMap = true);
39
};
40

    
41
class debVersioningSystem : public pkgVersioningSystem
42
{     
43
   public:
44

    
45
   int CmpVersion(string A,string B);
46
   bool CheckDep(const char *PkgVer,int Op,const char *DepVer);
47
   string UpstreamVersion(const char *A);
48

    
49
   debVersioningSystem();
50
};
51

    
52
extern debVersioningSystem debVS;
53

    
(1-1/4)