diff options
Diffstat (limited to 'swig/ResStatus.i')
-rw-r--r-- | swig/ResStatus.i | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/swig/ResStatus.i b/swig/ResStatus.i new file mode 100644 index 0000000..e91df8c --- /dev/null +++ b/swig/ResStatus.i @@ -0,0 +1,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(); + } +} |