summaryrefslogtreecommitdiff
path: root/swig/Target.i
blob: 0c81a33590f5b501e9f67da4596e45844f3191da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%ignore zypp::Target::reset;
#if ZYPP_VERSION > 631
namespace zypp
{
  // Redefine nested class in global scope for SWIG
  struct DistributionLabel {};
}
#endif
%include <zypp/Target.h>
namespace zypp
{
typedef intrusive_ptr<Target> Target_Ptr;
%template(Target_Ptr) intrusive_ptr<Target>;
}
#if ZYPP_VERSION > 631
%{
  namespace zypp
  {
    // Tell c++ compiler about SWIGs global class
    typedef Target::DistributionLabel DistributionLabel;
  }
%}
#endif