Author: kkaempf Date: Wed Dec 10 12:37:18 2008 New Revision: 11918 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11918&view=rev Log: provide access to whatprovidesdata via Pool.each_provider(int) Modified: trunk/sat-solver/bindings/pool.i Modified: trunk/sat-solver/bindings/pool.i URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/pool.i?rev=11918&r1=11917&r2=11918&view=diff ============================================================================== --- trunk/sat-solver/bindings/pool.i (original) +++ trunk/sat-solver/bindings/pool.i Wed Dec 10 12:37:18 2008 @@ -61,6 +61,8 @@ { return xsolvable_new( $self, (Id)id); } + Relation *relation( int rel ) + { return relation_new( $self, (Id)rel ); } #if defined(SWIGRUBY) %{ @@ -232,6 +234,18 @@ } } + void each_provider( int id ) + { + if (id > 0 && id < $self->whatprovidesdataoff) { + if (!$self->whatprovides) + pool_createwhatprovides($self); + + while ($self->whatprovidesdata[id]) { + generic_xsolvables_iterate_callback( xsolvable_new( $self, $self->whatprovidesdata[id++] ), NULL ); + } + } + } + #endif #if defined(SWIGPERL) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org