]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
add whatmatchesdep to bindings
authorMichael Schroeder <mls@suse.de>
Fri, 5 Sep 2014 13:39:43 +0000 (15:39 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 5 Sep 2014 13:39:43 +0000 (15:39 +0200)
bindings/solv.i

index 124bdca6d67f708c2867cf1acbc44f5f3d7c9c4f..e8acd35985b8c0e87a709ba6c430542fb6b3311a 100644 (file)
@@ -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