summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2013-11-06 15:44:50 +0100
committerMichael Andres <ma@suse.de>2013-11-06 15:44:50 +0100
commita510f5a1ab09290626f1ad37edfce638a749a1dd (patch)
treef81dc8ef6907dbebc04664ace26e667924af5ccb /swig
parentc17af20dc9ef8002dc132600c1008138d18bb277 (diff)
downloadlibzypp-bindings-a510f5a1ab09290626f1ad37edfce638a749a1dd.tar.gz
libzypp-bindings-a510f5a1ab09290626f1ad37edfce638a749a1dd.tar.bz2
libzypp-bindings-a510f5a1ab09290626f1ad37edfce638a749a1dd.zip
Wrap zypp::Changelog class
Diffstat (limited to 'swig')
-rw-r--r--swig/Changelog.i11
-rw-r--r--swig/zypp.i1
2 files changed, 12 insertions, 0 deletions
diff --git a/swig/Changelog.i b/swig/Changelog.i
new file mode 100644
index 0000000..0470fdb
--- /dev/null
+++ b/swig/Changelog.i
@@ -0,0 +1,11 @@
+%include <zypp/Changelog.h>
+
+// some list ctor requires a ChangelogEntry default ctor
+// but we don't have one.
+%ignore std::list<zypp::ChangelogEntry>::list;
+
+namespace zypp
+{
+ typedef ::std::list<ChangelogEntry> Changelog;
+ %template(Changelog) ::std::list<ChangelogEntry>;
+}
diff --git a/swig/zypp.i b/swig/zypp.i
index aff93a5..a7eff12 100644
--- a/swig/zypp.i
+++ b/swig/zypp.i
@@ -224,6 +224,7 @@ namespace zypp {
%include "Kind.i"
%include "CheckSum.i"
%include "Date.i"
+%include "Changelog.i"
%include "Dep.i"
%include "Capability.i"
%include "Capabilities.i"