From: Michael Schroeder Date: Wed, 24 Oct 2018 08:28:31 +0000 (+0200) Subject: Adapt documentation to the last change. X-Git-Tag: 0.7.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739ff70edc858217744ca2d9d73023f6f043300e;p=thirdparty%2Flibsolv.git Adapt documentation to the last change. --- diff --git a/doc/gen/libsolv-bindings.3 b/doc/gen/libsolv-bindings.3 index c065a131..4bfab9c3 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 -.\" Date: 10/22/2018 +.\" Date: 10/24/2018 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "LIBSOLV\-BINDINGS" "3" "10/22/2018" "libsolv" "LIBSOLV" +.TH "LIBSOLV\-BINDINGS" "3" "10/24/2018" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -3161,22 +3161,22 @@ Intersect the result of the match to the current selection instead of replacing .\} .sp Back pointer to pool\&. -.SS "METHODS" .sp .if n \{\ .RS 4 .\} .nf -\fBint flags()\fR -my \fI$flags\fR \fB=\fR \fI$sel\fR\fB\->flags()\fR; -\fIflags\fR \fB=\fR \fIsel\fR\fB\&.flags()\fR -\fIflags\fR \fB=\fR \fIsel\fR\fB\&.flags()\fR +\fBint flags;\fR /* read only */ +\fI$sel\fR\fB\->{flags}\fR +\fIflags\fR \fB=\fR \fIsel\fR\fB\&.flags\fR +\fIflags\fR \fB=\fR \fIsel\fR\fB\&.flags\fR .fi .if n \{\ .RE .\} .sp -Return the result flags of the selection\&. The flags are a subset of the ones used when creating the selection, they describe which method was used to get the result\&. For example, if you create the selection with \(lqSELECTION_NAME | SELECTION_PROVIDES\(rq, the resulting flags will either be SELECTION_NAME or SELECTION_PROVIDES depending if there was a package that matched the name or not\&. If there was no match at all, the flags will be zero\&. +The result flags of the selection\&. The flags are a subset of the ones used when creating the selection, they describe which method was used to get the result\&. For example, if you create the selection with \(lqSELECTION_NAME | SELECTION_PROVIDES\(rq, the resulting flags will either be SELECTION_NAME or SELECTION_PROVIDES depending if there was a package that matched the name or not\&. If there was no match at all, the flags will be zero\&. +.SS "METHODS" .sp .if n \{\ .RS 4 diff --git a/doc/libsolv-bindings.txt b/doc/libsolv-bindings.txt index 7ed2d55d..d28b8b58 100644 --- a/doc/libsolv-bindings.txt +++ b/doc/libsolv-bindings.txt @@ -1780,14 +1780,12 @@ Intersect the result of the match to the current selection instead of replacing Back pointer to pool. -=== METHODS === - - int flags() - my $flags = $sel->flags(); - flags = sel.flags() - flags = sel.flags() + int flags; /* read only */ + $sel->{flags} + flags = sel.flags + flags = sel.flags -Return the result flags of the selection. The flags are a subset +The result flags of the selection. The flags are a subset of the ones used when creating the selection, they describe which method was used to get the result. For example, if you create the selection with ``SELECTION_NAME | SELECTION_PROVIDES'', the resulting @@ -1795,6 +1793,8 @@ flags will either be SELECTION_NAME or SELECTION_PROVIDES depending if there was a package that matched the name or not. If there was no match at all, the flags will be zero. +=== METHODS === + bool isempty() $sel->isempty() sel.isempty()