Author: kkaempf Date: Fri Dec 5 12:19:32 2008 New Revision: 11883 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11883&view=rev Log: Repo::search (limit search to repo) Modified: trunk/sat-solver/bindings/repo.i Modified: trunk/sat-solver/bindings/repo.i URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/repo.i?rev=11883&r1=11882&r2=11883&view=diff ============================================================================== --- trunk/sat-solver/bindings/repo.i (original) +++ trunk/sat-solver/bindings/repo.i Fri Dec 5 12:19:32 2008 @@ -187,5 +187,17 @@ yield d %} #endif + +#if defined(SWIGRUBY) + void search(const char *match, int flags, XSolvable *xs = NULL, const char *keyname = NULL) + { + Dataiterator *di; + di = swig_dataiterator_new($self->pool, $self, match, flags, xs, keyname); + while( dataiterator_step(di) ) { + rb_yield(SWIG_NewPointerObj((void*) di, SWIGTYPE_p__Dataiterator, 0)); + } + swig_dataiterator_free(di); + } +#endif } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org