Skip to content

Commit

Permalink
Merge pull request #256 from ignatenkobrain/python-rich
Browse files Browse the repository at this point in the history
bindings: expose parserpmrichdep()
  • Loading branch information
mlschroe committed Feb 26, 2018
2 parents d000c03 + 68d99f9 commit ff28412
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bindings/solv.i
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ff28412

Please sign in to comment.