summaryrefslogtreecommitdiff
path: root/swig/Resolver.i
blob: d4245c7c6fb32187fb2a8a3b56d7252357a19bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 ::zypp::intrusive_ptr< Resolver > Resolver_Ptr;
  %template(Resolver_Ptr) ::zypp::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
}