diff options
author | Michael Andres <ma@suse.de> | 2008-07-23 12:27:53 +0000 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2008-07-23 12:27:53 +0000 |
commit | e742d27dc1834558e6a99678792a16104b7c3137 (patch) | |
tree | 548664735da58a19908b79bdc7d05002216669e2 /swig/zypp.i | |
parent | 5162733b07341c5e3f53ae7c6339d4f38973130e (diff) | |
download | libzypp-bindings-e742d27dc1834558e6a99678792a16104b7c3137.tar.gz libzypp-bindings-e742d27dc1834558e6a99678792a16104b7c3137.tar.bz2 libzypp-bindings-e742d27dc1834558e6a99678792a16104b7c3137.zip |
Changes bindings to at least compile. Still several header copies to be
replaced by %include. For shure also still a lot namespace issues, as
c++ namespace support was introduced in SWIG-1.3.12.
Diffstat (limited to 'swig/zypp.i')
-rw-r--r-- | swig/zypp.i | 59 |
1 files changed, 3 insertions, 56 deletions
diff --git a/swig/zypp.i b/swig/zypp.i index 81fbb2a..d844170 100644 --- a/swig/zypp.i +++ b/swig/zypp.i @@ -69,7 +69,7 @@ typedef std::list<std::string> StringList; template < typename T > class intrusive_ptr { public: - T *operator->(); + T *operator->(); }; namespace zypp { @@ -100,6 +100,7 @@ namespace zypp { %include "perl5/perl.i" #endif +%include "IdStringType.i" %include "Pathname.i" %include "Url.i" %include "ResStatus.i" @@ -142,59 +143,5 @@ namespace zypp { %include "python/callbacks.i" #endif -class ZYpp -{ - public: - typedef intrusive_ptr<ZYpp> Ptr; - typedef intrusive_ptr<const ZYpp> constPtr; - public: - - //ResPool pool() const; - //ResPoolProxy poolProxy() const; - - /* - DiskUsageCounter::MountPointSet diskUsage(); - void setPartitions(const DiskUsageCounter::MountPointSet &mp); - */ - Target_Ptr target() const; - void initializeTarget(const zypp::Pathname & root); - void finishTarget(); - - typedef ZYppCommitResult CommitResult; - ZYppCommitResult commit( const ZYppCommitPolicy & policy_r ); - - Resolver_Ptr resolver() const; - KeyRing_Ptr keyRing() const; - - /* - void setTextLocale( const Locale & textLocale_r ); - Locale getTextLocale() const; - typedef std::set<Locale> LocaleSet; - void setRequestedLocales( const LocaleSet & locales_r ); - LocaleSet getRequestedLocales() const; - LocaleSet getAvailableLocales() const; - void availableLocale( const Locale & locale_r ); - */ - zypp::Pathname homePath() const; - zypp::Pathname tmpPath() const; - void setHomePath( const zypp::Pathname & path ); - - Arch architecture() const; - void setArchitecture( const Arch & arch ); - - /** - * \short Apply persistant locks to current pool. - * Call this before solving - * - * \returns Number of items locked - */ - int applyLocks(); - - protected: - virtual ~ZYpp(); - private: - friend class ZYppFactory; - explicit ZYpp( const Impl_Ptr & impl_r ); -}; - +%include <zypp/ZYpp.h> %include "ZYppFactory.i" |