summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2010-03-24 12:13:16 +0100
committerMichael Andres <ma@suse.de>2010-03-24 12:13:16 +0100
commite9223d4b69b2fd43717efcc7b1dac309a1169566 (patch)
tree70453df24ccede0eb9c8e077a38e05ae30ed7413 /swig
parent126fe8726d3333e1ef5bf03c68acdb8ead947fc3 (diff)
downloadlibzypp-bindings-e9223d4b69b2fd43717efcc7b1dac309a1169566.tar.gz
libzypp-bindings-e9223d4b69b2fd43717efcc7b1dac309a1169566.tar.bz2
libzypp-bindings-e9223d4b69b2fd43717efcc7b1dac309a1169566.zip
Let swig understand nested class Target::DistributionLabel
Diffstat (limited to 'swig')
-rw-r--r--swig/Target.i13
1 files changed, 12 insertions, 1 deletions
diff --git a/swig/Target.i b/swig/Target.i
index 86a71d5..b8c2e3c 100644
--- a/swig/Target.i
+++ b/swig/Target.i
@@ -1,8 +1,19 @@
%ignore zypp::Target::reset;
-
+namespace zypp
+{
+ // Redefine nested class in global scope for SWIG
+ struct DistributionLabel {};
+}
%include <zypp/Target.h>
namespace zypp
{
typedef intrusive_ptr<Target> Target_Ptr;
%template(Target_Ptr) intrusive_ptr<Target>;
}
+%{
+ namespace zypp
+ {
+ // Tell c++ compiler about SWIGs global class
+ typedef Target::DistributionLabel DistributionLabel;
+ }
+%}