From 8f912ea045500ac4599dcdf64c876823f632fdd5 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 15 May 2013 17:39:56 +0200 Subject: [PATCH] some minor binding tweaks to make it more flexible --- bindings/solv.i | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/solv.i b/bindings/solv.i index 2965ae3b..7f954d54 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -1182,7 +1182,7 @@ typedef struct { Id lookup_id(Id entry, Id keyname) { return pool_lookup_id($self, entry, keyname); } - unsigned int lookup_num(Id entry, Id keyname, unsigned int notfound = 0) { + unsigned long long lookup_num(Id entry, Id keyname, unsigned long long notfound = 0) { return pool_lookup_num($self, entry, keyname, notfound); } bool lookup_void(Id entry, Id keyname) { @@ -1284,7 +1284,7 @@ typedef struct { %typemap(out) Queue whatprovides Queue2Array(XSolvable *, 1, new_XSolvable(arg1, id)); %newobject whatprovides; - Queue whatprovides(Id dep) { + Queue whatprovides(DepId dep) { Pool *pool = $self; Queue q; Id p, pp; @@ -1301,7 +1301,7 @@ typedef struct { #ifdef SWIGRUBY %rename("isknownarch?") isknownarch; #endif - bool isknownarch(Id id) { + bool isknownarch(DepId id) { Pool *pool = $self; if (!id || id == ID_EMPTY) return 0; -- 2.47.2