diff options
author | Michael Andres <ma@suse.de> | 2010-03-24 12:13:16 +0100 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2010-03-24 12:13:16 +0100 |
commit | e9223d4b69b2fd43717efcc7b1dac309a1169566 (patch) | |
tree | 70453df24ccede0eb9c8e077a38e05ae30ed7413 /swig | |
parent | 126fe8726d3333e1ef5bf03c68acdb8ead947fc3 (diff) | |
download | libzypp-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.i | 13 |
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; + } +%} |