From a510f5a1ab09290626f1ad37edfce638a749a1dd Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 6 Nov 2013 15:44:50 +0100 Subject: Wrap zypp::Changelog class --- swig/Changelog.i | 11 +++++++++++ swig/zypp.i | 1 + 2 files changed, 12 insertions(+) create mode 100644 swig/Changelog.i 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 + +// some list ctor requires a ChangelogEntry default ctor +// but we don't have one. +%ignore std::list::list; + +namespace zypp +{ + typedef ::std::list Changelog; + %template(Changelog) ::std::list; +} 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" -- cgit v1.2.3