]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
bindings: expose parserpmrichdep() 256/head
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>
Sun, 25 Feb 2018 16:10:10 +0000 (17:10 +0100)
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>
Sun, 25 Feb 2018 16:10:10 +0000 (17:10 +0100)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
bindings/solv.i

index add97a23b2bf19150b2d3cd18f793f8e21987fc5..4081c4bd7704a2887b9d58f7737ee7116dd6187c 100644 (file)
@@ -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);
   }