Top |
GPtrArray * | xb_silo_query () |
GPtrArray * | xb_silo_query_full () |
GPtrArray * | xb_silo_query_with_context () |
XbNode * | xb_silo_query_first () |
XbNode * | xb_silo_query_first_full () |
XbNode * | xb_silo_query_first_with_context () |
gboolean | xb_silo_query_build_index () |
GPtrArray * xb_silo_query (XbSilo *self
,const gchar *xpath
,guint limit
,GError **error
);
Searches the silo using an XPath query, returning up to limit
results.
It is safe to call this function from a different thread to the one that created the XbSilo.
Please note: Only a subset of XPath is supported.
self |
a XbSilo |
|
xpath |
an XPath, e.g. |
|
limit |
maximum number of results to return, or 0 for "all" |
|
error |
the GError, or |
Since: 0.1.0
GPtrArray * xb_silo_query_full (XbSilo *self
,XbQuery *query
,GError **error
);
Searches the silo using an XPath query.
It is safe to call this function from a different thread to the one that created the XbSilo.
Please note: Only a subset of XPath is supported.
Since: 0.1.13
GPtrArray * xb_silo_query_with_context (XbSilo *self
,XbQuery *query
,XbQueryContext *context
,GError **error
);
Searches the silo using an XPath query.
It is safe to call this function from a different thread to the one that created the XbSilo.
Please note: Only a subset of XPath is supported.
self |
a XbSilo |
|
query |
an XbQuery |
|
context |
context including values bound to opcodes of type
|
[nullable][transfer none] |
error |
the GError, or |
Since: 0.3.0
XbNode * xb_silo_query_first (XbSilo *self
,const gchar *xpath
,GError **error
);
Searches the silo using an XPath query, returning up to one result.
It is safe to call this function from a different thread to the one that created the XbSilo.
Please note: Only a tiny subset of XPath 1.0 is supported.
self |
a XbSilo |
|
xpath |
An XPath, e.g. |
|
error |
the GError, or |
Since: 0.1.0
XbNode * xb_silo_query_first_full (XbSilo *self
,XbQuery *query
,GError **error
);
Searches the silo using an XPath query, returning up to one result.
It is safe to call this function from a different thread to the one that created the XbSilo.
Please note: Only a tiny subset of XPath 1.0 is supported.
Since: 0.1.13
XbNode * xb_silo_query_first_with_context (XbSilo *self
,XbQuery *query
,XbQueryContext *context
,GError **error
);
Searches the silo using an XPath query, returning up to one result.
It is safe to call this function from a different thread to the one that created the XbSilo.
Please note: Only a tiny subset of XPath 1.0 is supported.
self |
a XbSilo |
|
query |
an XbQuery |
|
context |
context including values bound to opcodes of type
|
[nullable][transfer none] |
error |
the GError, or |
Since: 0.3.0
gboolean xb_silo_query_build_index (XbSilo *self
,const gchar *xpath
,const gchar *attr
,GError **error
);
Adds the
or attr()
results of a query to the index.text()
self |
a XbSilo |
|
xpath |
An XPath, e.g. |
|
attr |
Attribute name, e.g. |
[nullable] |
error |
the GError, or |
Since: 0.1.4