diff options
author | Michael Schroeder <mls@suse.de> | 2013-05-27 17:56:03 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-05-27 17:56:03 +0200 |
commit | 65f64e0a6bf74498cc92f5dea1b4cef5fed23643 (patch) | |
tree | f02f88a1342301fe6be46fc4d6567ceb7588a752 /bindings | |
parent | 21ddc105e8185242f889ea8df5d7889effa5adf5 (diff) | |
download | libsolv-65f64e0a6bf74498cc92f5dea1b4cef5fed23643.tar.gz libsolv-65f64e0a6bf74498cc92f5dea1b4cef5fed23643.tar.bz2 libsolv-65f64e0a6bf74498cc92f5dea1b4cef5fed23643.zip |
add lookup_idarray method to the Datapos class
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/solv.i | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bindings/solv.i b/bindings/solv.i index 8bbbd4a..0d89094 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -1764,6 +1764,16 @@ rb_eval_string( pool->pos = oldpos; return loc; } + Queue lookup_idarray(Id keyname) { + Pool *pool = $self->repo->pool; + Datapos oldpos = pool->pos; + Queue r; + queue_init(&r); + pool->pos = *$self; + pool_lookup_idarray(pool, SOLVID_POS, keyname, &r); + pool->pos = oldpos; + return r; + } } %extend Datamatch { |