diff options
author | Michael Schroeder <mls@suse.de> | 2012-12-05 11:25:10 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-12-05 11:25:10 +0100 |
commit | 9d3f22380ac48d46cfafa9f8bb1ddb59ea486431 (patch) | |
tree | d082f056de46d6c49da4007bd3d40dd8a1fbc3c1 /bindings | |
parent | f5c558ad8def6d239bd42a4e18e3c771980159d0 (diff) | |
download | libsolv-9d3f22380ac48d46cfafa9f8bb1ddb59ea486431.tar.gz libsolv-9d3f22380ac48d46cfafa9f8bb1ddb59ea486431.tar.bz2 libsolv-9d3f22380ac48d46cfafa9f8bb1ddb59ea486431.zip |
rename selection_limit to selection_filter, add flags to make selection_make more flexible
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/solv.i | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bindings/solv.i b/bindings/solv.i index d83df92..bc3f1ab 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -833,10 +833,13 @@ typedef struct { static const Id SELECTION_NAME = SELECTION_NAME; static const Id SELECTION_PROVIDES = SELECTION_PROVIDES; static const Id SELECTION_FILELIST = SELECTION_FILELIST; - static const Id SELECTION_GLOB = SELECTION_GLOB; - static const Id SELECTION_NOCASE = SELECTION_NOCASE; + static const Id SELECTION_CANON = SELECTION_CANON; + static const Id SELECTION_DOTARCH = SELECTION_DOTARCH; + static const Id SELECTION_REL = SELECTION_REL; static const Id SELECTION_INSTALLED_ONLY = SELECTION_INSTALLED_ONLY; + static const Id SELECTION_GLOB = SELECTION_GLOB; static const Id SELECTION_FLAT = SELECTION_FLAT; + static const Id SELECTION_NOCASE = SELECTION_NOCASE; static const Id SELECTION_SOURCE_ONLY = SELECTION_SOURCE_ONLY; static const Id SELECTION_WITH_SOURCE = SELECTION_WITH_SOURCE; @@ -863,11 +866,11 @@ typedef struct { bool isempty() { return $self->q.count == 0; } - void limit(Selection *lsel) { + void filter(Selection *lsel) { if ($self->pool != lsel->pool) queue_empty(&$self->q); else - selection_limit($self->pool, &$self->q, &lsel->q); + selection_filter($self->pool, &$self->q, &lsel->q); } void add(Selection *lsel) { if ($self->pool == lsel->pool) |