From: Michael Schroeder Date: Fri, 5 Sep 2014 13:39:43 +0000 (+0200) Subject: add whatmatchesdep to bindings X-Git-Tag: 0.6.5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d389a17861a2ea9db50c58d8add4e8e787d73099;p=thirdparty%2Flibsolv.git add whatmatchesdep to bindings --- diff --git a/bindings/solv.i b/bindings/solv.i index 124bdca6..e8acd359 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -1397,6 +1397,15 @@ typedef struct { return pool_queuetowhatprovides($self, &q); } + %typemap(out) Queue whatmatchesdep Queue2Array(XSolvable *, 1, new_XSolvable(arg1, id)); + %newobject whatmatchesdep; + Queue whatmatchesdep(Id keyname, DepId dep, Id marker = -1) { + Queue q; + queue_init(&q); + pool_whatmatchesdep($self, keyname, dep, &q, marker); + return q; + } + #ifdef SWIGRUBY %rename("isknownarch?") isknownarch; #endif