blob: 722ca3f5d9cb59c0799456ea63a5e65a8664ad94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
%module zypp
%{
/* Includes the header in the wrapper code */
#include "zypp/base/PtrTypes.h"
#include <zypp/Edition.h>
#include <zypp/ResTraits.h>
#include <zypp/ResPoolProxy.h>
#include <zypp/ResStore.h>
#include <zypp/ZYppFactory.h>
#include <zypp/ZYpp.h>
#include <zypp/Pathname.h>
#include "zypp/base/ReferenceCounted.h"
#include "zypp/ResObject.h"
#include "zypp/ResPoolManager.h"
#include "zypp/Target.h"
#include "zypp/target/TargetImpl.h"
#include "zypp/TranslatedText.h"
#include "zypp/CapFactory.h"
#include "zypp/Package.h"
#include "zypp/ResFilters.h"
#include "zypp/OnMediaLocation.h"
#include "zypp/Repository.h"
#include "zypp/RepoManager.h"
#include "zypp/repo/RepoType.h"
#include "zypp/MediaSetAccess.h"
#include "zypp/TmpPath.h"
using namespace boost;
using namespace zypp;
using namespace zypp::repo;
using namespace zypp::resfilter;
using namespace zypp::filesystem;
typedef std::set<Url> UrlSet;
%}
%rename("+") "operator+";
%rename("<<") "operator<<";
%rename("!=") "operator!=";
%rename("!") "operator!";
%rename("==") "operator==";
template < typename T >
class intrusive_ptr {
public:
T *operator->();
};
%include "std_string.i"
%include "stl.i"
#ifdef SWIGRUBY
%include "ruby/std_list.i"
%include "ruby/std_set.i"
%include "ruby/ruby.i"
#endif
#ifdef SWIGPYTHON
%include "std_list.i"
%include "std_set.i"
%include "python/python.i"
#endif
%include "Pathname.i"
%include "Url.i"
%include "NeedAType.i"
%include "Arch.i"
%include "ResStore.i"
%include "Edition.i"
%include "Kind.i"
%include "Date.i"
%include "Capability.i"
%include "CapSet.i"
%include "Dependencies.i"
%include "Dep.i"
%include "Resolvable.i"
%include "ByteCount.i"
%include "RepoType.i"
%include "Repository.i"
%include "RepoInfo.i"
%include "RepoManager.i"
%include "RepoStatus.i"
%include "ResObject.i"
%include "TranslatedText.i"
%include "CheckSum.i"
%include "CapMatch.i"
%include "CapFactory.i"
%include "NVR.i"
%include "NVRA.i"
%include "NVRAD.i"
%include "Package.i"
%include "KeyRing.i"
%include "Target.i"
%include "ResStatus.i"
%include "PoolItem.i"
%include "ResPool.i"
%include "ResPoolManager.i"
%include "ZYppCommitPolicy.i"
%include "ZYppCommitResult.i"
%include "MediaSetAccess.i"
%include "TmpPath.i"
class ZYpp
{
public:
typedef intrusive_ptr<ZYpp> Ptr;
typedef intrusive_ptr<const ZYpp> constPtr;
public:
ResPool pool() const;
ResPoolProxy poolProxy() const;
/*
SourceFeed_Ref sourceFeed() const;
*/
void addResolvables (const ResStore& store, bool installed = false);
void removeResolvables (const ResStore& store);
/*
DiskUsageCounter::MountPointSet diskUsage();
void setPartitions(const DiskUsageCounter::MountPointSet &mp);
*/
Target_Ptr target() const;
#ifdef SWIGRUBY
void initializeTarget(const Pathname & root);
#else
void initializeTarget(const std::string & root);
#endif
void finishTarget();
typedef ZYppCommitResult CommitResult;
ZYppCommitResult commit( const ZYppCommitPolicy & policy_r );
Resolver_Ptr resolver() const;
KeyRing_Ptr keyRing() const;
/*
void setTextLocale( const Locale & textLocale_r );
Locale getTextLocale() const;
typedef std::set<Locale> LocaleSet;
void setRequestedLocales( const LocaleSet & locales_r );
LocaleSet getRequestedLocales() const;
LocaleSet getAvailableLocales() const;
void availableLocale( const Locale & locale_r );
*/
Pathname homePath() const;
Pathname tmpPath() const;
void setHomePath( const Pathname & path );
Arch architecture() const;
void setArchitecture( const Arch & arch );
protected:
virtual ~ZYpp();
private:
friend class ZYppFactory;
explicit ZYpp( const Impl_Ptr & impl_r );
};
%include "ZYppFactory.i"
|