Mailinglist Archive: zypp-commit (500 mails)
| < Previous | Next > |
[zypp-commit] r6039 - in /trunk/libzypp-bindings: examples/ruby/list_target_resolvables.rb swig/NeedAType.i swig/zypp.i
- From: aschnell@xxxxxxxxxxxxxxxx
- Date: Tue, 17 Jul 2007 09:42:04 -0000
- Message-id: <20070717094204.C5F22C8471@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Tue Jul 17 11:42:04 2007
New Revision: 6039
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6039&view=rev
Log:
- list more Resolvable properties
Added:
trunk/libzypp-bindings/swig/NeedAType.i
Modified:
trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb
trunk/libzypp-bindings/swig/zypp.i
Modified: trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb?rev=6039&r1=6038&r2=6039&view=diff
==============================================================================
--- trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb (original)
+++ trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb Tue Jul 17 11:42:04 2007
@@ -13,6 +13,7 @@
r.each do | p |
# puts p.class
- puts p.name
+ puts "#{p.name} #{p.edition.as_string} #{p.arch.as_string}"
+ puts " #{p.summary}"
end
Added: trunk/libzypp-bindings/swig/NeedAType.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/NeedAType.i?rev=6039&view=auto
==============================================================================
--- trunk/libzypp-bindings/swig/NeedAType.i (added)
+++ trunk/libzypp-bindings/swig/NeedAType.i Tue Jul 17 11:42:04 2007
@@ -0,0 +1,5 @@
+
+typedef std::string Label;
+
+typedef std::string Text;
+
Modified: trunk/libzypp-bindings/swig/zypp.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/zypp.i?rev=6039&r1=6038&r2=6039&view=diff
==============================================================================
--- trunk/libzypp-bindings/swig/zypp.i (original)
+++ trunk/libzypp-bindings/swig/zypp.i Tue Jul 17 11:42:04 2007
@@ -23,7 +23,7 @@
#include "zypp/RepoManager.h"
#include "zypp/repo/RepoType.h"
#include "zypp/MediaSetAccess.h"
-
+
using namespace boost;
using namespace zypp;
using namespace zypp::repo;
@@ -56,12 +56,13 @@
%include "Pathname.i"
%include "Url.i"
-
+
%include std_string.i
%include "stl.i"
%include "std_list.i"
%include "std_set.i"
-
+
+%include "NeedAType.i"
%include "Arch.i"
%include "ResStore.i"
%include "Edition.i"
@@ -95,27 +96,27 @@
%include "ZYppCommitResult.i"
%include "MediaSetAccess.i"
-
+
#ifdef SWIGRUBY
%include "ruby.i"
#endif
-
+
/* define iterators using swig macros */
iter2( ResStore, ResObject* )
auto_iterator( std::list<RepoInfo>, RepoInfo )
%alias Arch::asString "to_s";
-
+
class ZYpp
{
public:
typedef intrusive_ptr<ZYpp> Ptr;
typedef intrusive_ptr<const ZYpp> constPtr;
public:
-
+
ResPool pool() const;
ResPoolProxy poolProxy() const;
-
+
/*
SourceFeed_Ref sourceFeed() const;
*/
@@ -128,13 +129,13 @@
Target_Ptr target() const;
void initializeTarget(const 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;
@@ -147,10 +148,10 @@
Pathname homePath() const;
Pathname tmpPath() const;
void setHomePath( const Pathname & path );
-
+
Arch architecture() const;
void setArchitecture( const Arch & arch );
-
+
protected:
virtual ~ZYpp();
private:
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
Date: Tue Jul 17 11:42:04 2007
New Revision: 6039
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6039&view=rev
Log:
- list more Resolvable properties
Added:
trunk/libzypp-bindings/swig/NeedAType.i
Modified:
trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb
trunk/libzypp-bindings/swig/zypp.i
Modified: trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb?rev=6039&r1=6038&r2=6039&view=diff
==============================================================================
--- trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb (original)
+++ trunk/libzypp-bindings/examples/ruby/list_target_resolvables.rb Tue Jul 17 11:42:04 2007
@@ -13,6 +13,7 @@
r.each do | p |
# puts p.class
- puts p.name
+ puts "#{p.name} #{p.edition.as_string} #{p.arch.as_string}"
+ puts " #{p.summary}"
end
Added: trunk/libzypp-bindings/swig/NeedAType.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/NeedAType.i?rev=6039&view=auto
==============================================================================
--- trunk/libzypp-bindings/swig/NeedAType.i (added)
+++ trunk/libzypp-bindings/swig/NeedAType.i Tue Jul 17 11:42:04 2007
@@ -0,0 +1,5 @@
+
+typedef std::string Label;
+
+typedef std::string Text;
+
Modified: trunk/libzypp-bindings/swig/zypp.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/zypp.i?rev=6039&r1=6038&r2=6039&view=diff
==============================================================================
--- trunk/libzypp-bindings/swig/zypp.i (original)
+++ trunk/libzypp-bindings/swig/zypp.i Tue Jul 17 11:42:04 2007
@@ -23,7 +23,7 @@
#include "zypp/RepoManager.h"
#include "zypp/repo/RepoType.h"
#include "zypp/MediaSetAccess.h"
-
+
using namespace boost;
using namespace zypp;
using namespace zypp::repo;
@@ -56,12 +56,13 @@
%include "Pathname.i"
%include "Url.i"
-
+
%include std_string.i
%include "stl.i"
%include "std_list.i"
%include "std_set.i"
-
+
+%include "NeedAType.i"
%include "Arch.i"
%include "ResStore.i"
%include "Edition.i"
@@ -95,27 +96,27 @@
%include "ZYppCommitResult.i"
%include "MediaSetAccess.i"
-
+
#ifdef SWIGRUBY
%include "ruby.i"
#endif
-
+
/* define iterators using swig macros */
iter2( ResStore, ResObject* )
auto_iterator( std::list<RepoInfo>, RepoInfo )
%alias Arch::asString "to_s";
-
+
class ZYpp
{
public:
typedef intrusive_ptr<ZYpp> Ptr;
typedef intrusive_ptr<const ZYpp> constPtr;
public:
-
+
ResPool pool() const;
ResPoolProxy poolProxy() const;
-
+
/*
SourceFeed_Ref sourceFeed() const;
*/
@@ -128,13 +129,13 @@
Target_Ptr target() const;
void initializeTarget(const 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;
@@ -147,10 +148,10 @@
Pathname homePath() const;
Pathname tmpPath() const;
void setHomePath( const Pathname & path );
-
+
Arch architecture() const;
void setArchitecture( const Arch & arch );
-
+
protected:
virtual ~ZYpp();
private:
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |