diff options
Diffstat (limited to 'swig/Resolver.i')
-rw-r--r-- | swig/Resolver.i | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/swig/Resolver.i b/swig/Resolver.i new file mode 100644 index 0000000..2d1f402 --- /dev/null +++ b/swig/Resolver.i @@ -0,0 +1,27 @@ +#ifdef SWIGPERL5 + %template(StringList) std::list<std::string>; +#endif + +%include <zypp/ProblemTypes.h> +%include <zypp/ResolverProblem.h> +%include <zypp/ProblemSolution.h> +%include <zypp/Resolver.h> + +namespace zypp +{ + typedef intrusive_ptr< Resolver > Resolver_Ptr; + %template(Resolver_Ptr) intrusive_ptr<Resolver>; + +#ifndef SWIGRUBY + /* swig generates wrong code (>> instead of > > for template type) + * in Ruby + */ + + typedef ::boost::intrusive_ptr< ResolverProblem > ResolverProblem_Ptr; + %template(ResolverProblem_Ptr) ::boost::intrusive_ptr< ResolverProblem >; + typedef std::list< ResolverProblem_Ptr > ResolverProblemList; + %template(ResolverProblemList) ::std::list< ResolverProblem_Ptr >; + +#endif +} + |