summaryrefslogtreecommitdiff
path: root/swig/ResStatus.i
blob: e91df8cb3857ae312f5a735c9c81751989114810 (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
28

%include <zypp/ResStatus.h>

#ifdef SWIGPERL5

   %extend ResStatus {

      bool setToBeInstalledUser()
      {
         return self->setToBeInstalled(ResStatus::USER);
      }

      bool resetTransactUser()
      {
         return self->resetTransact(ResStatus::USER);
      }
   };
#endif

%extend zypp::ResStatus
{
  std::string asString() const
  {
    std::ostringstream str;
    str << *self;
    return str.str();
  }
}