summaryrefslogtreecommitdiff
path: root/swig/Target.i
blob: b8c2e3c7af70a3c4eca2c8293022ec4961b7ee5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
  }
%}