summaryrefslogtreecommitdiff
path: root/swig/KeyRing.i
blob: cf80a1772e9c1083d108f0e64e091bd1075484cf (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

%ignore zypp::KeyRingReport;
%ignore zypp::KeyRingSignals;

%rename(dontuse_setDefaultAccept) zypp::KeyRing::setDefaultAccept;
%rename(setDefaultAccept) zypp::KeyRing::setDefaultAcceptBits;

%rename(dontuse_defaultAccept) zypp::KeyRing::defaultAccept;
%rename(defaultAccept) zypp::KeyRing::defaultAcceptBits;

%include <zypp/KeyRing.h>
%extend zypp::KeyRing
{
  static void setDefaultAcceptBits( unsigned i ) {
    zypp::KeyRing::setDefaultAccept( zypp::KeyRing::DefaultAccept(i) );
  }
  static unsigned defaultAcceptBits() {
    return zypp::KeyRing::defaultAccept();
  }
}
namespace zypp
{
  typedef ::zypp::intrusive_ptr<KeyRing> KeyRing_Ptr;
  %template(KeyRing_Ptr) ::zypp::intrusive_ptr<KeyRing>;
}

%template(List_PublicKey) std::list<zypp::PublicKey>;