summaryrefslogtreecommitdiff
path: root/swig/Target.i
blob: 111740fdd0a4582aff2317429ebd15ea1153e95d (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 ::zypp::intrusive_ptr<Target> Target_Ptr;
%template(Target_Ptr) ::zypp::intrusive_ptr<Target>;
}
%{
  namespace zypp
  {
    // Tell c++ compiler about SWIGs global class
    typedef Target::DistributionLabel DistributionLabel;
  }
%}