From: Michael Schroeder Date: Wed, 15 May 2013 15:39:56 +0000 (+0200) Subject: some minor binding tweaks to make it more flexible X-Git-Tag: BASE-SuSE-Code-13_1-Branch~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f912ea045500ac4599dcdf64c876823f632fdd5;p=thirdparty%2Flibsolv.git some minor binding tweaks to make it more flexible --- 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;