From 68d99f9cabc6d55d2cfb23de8d4ec7fe6fd679c8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 25 Feb 2018 17:10:10 +0100 Subject: [PATCH] bindings: expose parserpmrichdep() Signed-off-by: Igor Gnatenko --- bindings/solv.i | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); } -- 2.47.2