From e9223d4b69b2fd43717efcc7b1dac309a1169566 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 24 Mar 2010 12:13:16 +0100 Subject: Let swig understand nested class Target::DistributionLabel --- swig/Target.i | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'swig') 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 namespace zypp { typedef intrusive_ptr Target_Ptr; %template(Target_Ptr) intrusive_ptr; } +%{ + namespace zypp + { + // Tell c++ compiler about SWIGs global class + typedef Target::DistributionLabel DistributionLabel; + } +%} -- cgit v1.2.3