blob: 80b2dd67a5f99cc8f8242187fbf940c0fdfb3491 (
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
|
#ifdef SWIGPERL5
#else
%template(UrlSet) std::list<zypp::Url>;
#endif
namespace zypp
{
namespace repo
{
%ignore operator==;
%ignore operator!=;
%ignore operator<<;
%ignore operator<;
}
typedef std::list<Url> UrlSet;
}
%ignore zypp::repo::RepoInfoBase::dumpOn(std::ostream &) const;
%ignore zypp::repo::RepoInfoBase::dumpAsIniOn(std::ostream &) const;
%ignore zypp::repo::RepoInfoBase::dumpAsXmlOn(std::ostream &) const;
%include <zypp/repo/RepoInfoBase.h>
// This is due to a typo in libzypp < 5.4.0
%ignore zypp::RepoInfo::defaultPrioity();
%ignore zypp::RepoInfo::dumpOn(std::ostream &) const;
%ignore zypp::RepoInfo::dumpAsIniOn(std::ostream &) const;
%ignore zypp::RepoInfo::dumpAsXmlOn(std::ostream &) const;
%include <zypp/RepoInfo.h>
typedef std::list<zypp::RepoInfo> RepoInfoList;
%template(RepoInfoList) std::list<zypp::RepoInfo>;
%extend zypp::RepoInfo
{
std::string dump(void) const
{
std::ostringstream str;
self->dumpOn(str);
return str.str();
}
std::string dumpAsIni(void) const
{
std::ostringstream str;
self->dumpAsIniOn(str);
return str.str();
}
std::string dumpAsXML(void) const
{
std::ostringstream str;
self->dumpAsXmlOn(str);
return str.str();
}
}
|