From: Igor Gnatenko Date: Sun, 25 Feb 2018 16:10:10 +0000 (+0100) Subject: bindings: expose parserpmrichdep() X-Git-Tag: 0.6.33~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d99f9cabc6d55d2cfb23de8d4ec7fe6fd679c8;p=thirdparty%2Flibsolv.git bindings: expose parserpmrichdep() Signed-off-by: Igor Gnatenko --- diff --git a/bindings/solv.i b/bindings/solv.i index add97a23..4081c4bd 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -665,6 +665,9 @@ typedef int bool; #ifdef SUSE #include "repo_autopattern.h" #endif +#ifdef ENABLE_COMPLEX_DEPS +#include "pool_parserpmrichdep.h" +#endif #include "solv_xfopen.h" #include "testcase.h" @@ -1729,6 +1732,13 @@ typedef struct { Id id = pool_str2id($self, str, create); return new_Dep($self, id); } +#ifdef ENABLE_COMPLEX_DEPS + %newobject Dep; + Dep *parserpmrichdep(const char *str) { + Id id = pool_parserpmrichdep($self, str); + return new_Dep($self, id); + } +#endif const char *id2str(Id id) { return pool_id2str($self, id); }