diff options
author | Michael Andres <ma@suse.de> | 2008-09-05 16:43:40 +0000 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2008-09-05 16:43:40 +0000 |
commit | c6fcfe47d295c4c8dabc469836fd6f4e87bbe529 (patch) | |
tree | 2c691fe1594ab99030eb49ad705dd8143549d7b5 /swig/zypp.i | |
parent | 743e0c0f0eb1aa853b24322e46c78bc7b981c14d (diff) | |
download | libzypp-bindings-c6fcfe47d295c4c8dabc469836fd6f4e87bbe529.tar.gz libzypp-bindings-c6fcfe47d295c4c8dabc469836fd6f4e87bbe529.tar.bz2 libzypp-bindings-c6fcfe47d295c4c8dabc469836fd6f4e87bbe529.zip |
Fix basic resolvabe attributes as needed by list_resolvables.py example.
Diffstat (limited to 'swig/zypp.i')
-rw-r--r-- | swig/zypp.i | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/swig/zypp.i b/swig/zypp.i index 06fe86d..4dbd47a 100644 --- a/swig/zypp.i +++ b/swig/zypp.i @@ -54,8 +54,6 @@ typedef std::list<std::string> StringList; %} %nodefault ByKind; -%define DEFINE_PTR_TYPE(name) -%enddef %rename("+") "operator+"; %rename("<<") "operator<<"; @@ -63,12 +61,6 @@ typedef std::list<std::string> StringList; %rename("!") "operator!"; %rename("==") "operator=="; -template < typename T > -class intrusive_ptr { - public: - T *operator->(); -}; - namespace zypp { namespace base { // silence 'Nothing known about class..' warning @@ -97,6 +89,12 @@ namespace zypp { %include "perl5/perl.i" #endif +%import <boost/scoped_ptr.hpp> +%import <boost/shared_ptr.hpp> +%import <boost/weak_ptr.hpp> +%import <boost/intrusive_ptr.hpp> +%import <zypp/base/PtrTypes.h> + %include "IdStringType.i" %include "Pathname.i" %include "ByteCount.i" @@ -111,6 +109,9 @@ namespace zypp { %include "Capability.i" %include "Capabilities.i" %include "CapMatch.i" +%include "RepoType.i" +%include "RepoInfo.i" +%include "ServiceInfo.i" %include "ResTraits.i" %include "ResStatus.i" %include "Resolvable.i" @@ -120,9 +121,6 @@ namespace zypp { %include "Pattern.i" %include "Product.i" %include "SrcPackage.i" -%include "RepoType.i" -%include "RepoInfo.i" -%include "ServiceInfo.i" %include "Repository.i" %include "RepoStatus.i" %include "RepoManager.i" |