Id const id;
const char * const idstr;
const char * const str;
+ %newobject dep;
+ Dep * const dep;
BinaryBlob const binary;
unsigned long long const num;
unsigned int const num2;
SWIGINTERN const char * const Datamatch_str_get(Dataiterator *di) {
return di->kv.str;
}
+ SWIGINTERN Dep *Datamatch_dep_get(Dataiterator *di) {
+ if (di->key->type == REPOKEY_TYPE_DIR || di->key->type == REPOKEY_TYPE_DIRSTRARRAY || di->key->type == REPOKEY_TYPE_DIRNUMNUMARRAY)
+ return 0;
+ if (di->data && di->data->localpool)
+ return 0;
+ return new_Dep(di->pool, di->kv.id);
+ }
SWIGINTERN BinaryBlob Datamatch_binary_get(Dataiterator *di) {
BinaryBlob bl;
bl.data = 0;
.\" Title: Libsolv-Bindings
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
-.\" Date: 03/26/2024
+.\" Date: 03/27/2024
.\" Manual: LIBSOLV
.\" Source: libsolv
.\" Language: English
.\"
-.TH "LIBSOLV\-BINDINGS" "3" "03/26/2024" "libsolv" "LIBSOLV"
+.TH "LIBSOLV\-BINDINGS" "3" "03/27/2024" "libsolv" "LIBSOLV"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.RS 4
.\}
.nf
+\fBDep *dep;\fR /* read only */
+\fI$d\fR\fB\->{dep}\fR
+\fId\fR\fB\&.dep\fR
+\fId\fR\fB\&.dep\fR
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+The id of the value that was matched converted to a dependency object\&.
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
\fBconst char *\fR\fIstr\fR;
\fI$d\fR\fB\->{str}\fR
\fId\fR\fB\&.str\fR
The Id of the value that was matched (only valid for id types),
either as id or string.
+ Dep *dep; /* read only */
+ $d->{dep}
+ d.dep
+ d.dep
+
+The id of the value that was matched converted to a dependency object.
+
const char *str;
$d->{str}
d.str