diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:59 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:59 +0900 |
commit | 308ed24db702bd76267a5e347fe83144294ed4e0 (patch) | |
tree | f64bd150dcf477e4f3c2faf9df553e5dd6a25f1e /doc | |
parent | 18ebbaf4f619e79231f5ad18a2ab8c135d22ef56 (diff) | |
download | libsolv-fc10cceccaff9db311aaf0585622d37af70f751e.tar.gz libsolv-fc10cceccaff9db311aaf0585622d37af70f751e.tar.bz2 libsolv-fc10cceccaff9db311aaf0585622d37af70f751e.zip |
Imported Upstream version 0.7.6upstream/0.7.6
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gen/libsolv-bindings.3 | 60 | ||||
-rw-r--r-- | doc/libsolv-bindings.txt | 45 |
2 files changed, 102 insertions, 3 deletions
diff --git a/doc/gen/libsolv-bindings.3 b/doc/gen/libsolv-bindings.3 index 88ab97d..ab9403f 100644 --- a/doc/gen/libsolv-bindings.3 +++ b/doc/gen/libsolv-bindings.3 @@ -2,12 +2,12 @@ .\" Title: Libsolv-Bindings .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> -.\" Date: 03/16/2019 +.\" Date: 07/01/2019 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "LIBSOLV\-BINDINGS" "3" "03/16/2019" "libsolv" "LIBSOLV" +.TH "LIBSOLV\-BINDINGS" "3" "07/01/2019" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -1129,6 +1129,62 @@ Set the callback function called when repository metadata needs to be loaded on .\} .sp Decrement the reference count of the appdata object\&. This can be used to break circular references (e\&.g\&. if the pool\(cqs appdata value points to some meta data structure that contains a pool handle)\&. If used incorrectly, this method can lead to application crashes, so beware\&. (This method is a no\-op for ruby and tcl\&.) +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *get_considered_list()\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->get_considered_list()\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_considered_list()\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_considered_list()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_considered_list(Id *\fR\fIids\fR\fB)\fR +\fI$pool\fR\fB\->set_considered_list(\e\fR\fI@ids\fR\fB)\fR; +\fIpool\fR\fB\&.set_considered_list(\fR\fIids\fR\fB)\fR +\fIpool\fR\fB\&.set_considered_list(\fR\fIids\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Get/set the list of solvables that are eligible for installation\&. Note that you need to recreate the whatprovides hash after changing the list\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *get_disabled_list()\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->get_disabled_list()\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_disabled_list()\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_disabled_list()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_disabled_list(Id *\fR\fIids\fR\fB)\fR +\fI$pool\fR\fB\->set_disabled_list(\e\fR\fI@ids\fR\fB)\fR; +\fIpool\fR\fB\&.set_disabled_list(\fR\fIids\fR\fB)\fR +\fIpool\fR\fB\&.set_disabled_list(\fR\fIids\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Get/set the list of solvables that are not eligible for installation\&. This is basically the inverse of the \(lqconsidered\(rq methods above, i\&.e\&. calling \(lqset_disabled_list()\(rq with an empty list will make all solvables eligible for installation\&. Note you need to recreate the whatprovides hash after changing the list\&. .SS "DATA RETRIEVAL METHODS" .sp In the following functions, the \fIkeyname\fR argument describes what to retrieve\&. For the standard cases you can use the available Id constants\&. For example, diff --git a/doc/libsolv-bindings.txt b/doc/libsolv-bindings.txt index 7b4f505..ac112cf 100644 --- a/doc/libsolv-bindings.txt +++ b/doc/libsolv-bindings.txt @@ -495,6 +495,20 @@ a Dep object or a simple Id as argument. Filter list of solvables by repo priority, architecture and version. + Solvable *whatcontainsdep(Id keyname, DepId dep, Id marker = -1) + my @solvables = $pool->whatcontainsdep($keyname, $dep) + solvables = pool.whatcontainsdep(keyname, dep) + solvables = pool.whatcontainsdep(keyname, dep) + +Return all solvables for which keyname contains the dependency. + + Solvable *whatmatchesdep(Id keyname, DepId dep, Id marker = -1) + my @solvables = $pool->whatmatchesdep($keyname, $sdep) + solvables = pool.whatmatchesdep(keyname, dep) + solvables = pool.whatmatchesdep(keyname, dep) + +Return all solvables that have dependencies in keyname that match the dependency. + Solvable *whatmatchessolvable(Id keyname, Solvable solvable, Id marker = -1) my @solvables = $pool->whatmatchessolvable($keyname, $solvable) solvables = pool.whatmatchessolvable(keyname, solvable) @@ -645,6 +659,35 @@ circular references (e.g. if the pool's appdata value points to some meta data structure that contains a pool handle). If used incorrectly, this method can lead to application crashes, so beware. (This method is a no-op for ruby and tcl.) + Id *get_considered_list() + my @ids = $pool->get_considered_list(); + ids = pool.get_considered_list() + ids = pool.get_considered_list() + + void set_considered_list(Id *ids) + $pool->set_considered_list(\@ids); + pool.set_considered_list(ids) + pool.set_considered_list(ids) + +Get/set the list of solvables that are eligible for installation. Note that +you need to recreate the whatprovides hash after changing the list. + + Id *get_disabled_list() + my @ids = $pool->get_disabled_list(); + ids = pool.get_disabled_list() + ids = pool.get_disabled_list() + + void set_disabled_list(Id *ids) + $pool->set_disabled_list(\@ids); + pool.set_disabled_list(ids) + pool.set_disabled_list(ids) + +Get/set the list of solvables that are not eligible for installation. This is +basically the inverse of the ``considered'' methods above, i.e. calling +``set_disabled_list()'' with an empty list will make all solvables eligible for +installation. Note you need to recreate the whatprovides hash after changing the +list. + === DATA RETRIEVAL METHODS === In the following functions, the _keyname_ argument describes what to retrieve. @@ -807,7 +850,7 @@ Back reference to the pool this dependency belongs to. The id of this dependency. -== Methods == +=== METHODS === Dep Rel(int flags, DepId evrid, bool create = 1) my $reldep = $dep->Rel($flags, $evrdep); |