Gio.DBusNodeInfo¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
annotations |
r/w |
A pointer to a |
|
interfaces |
r/w |
A pointer to a |
|
nodes |
r/w |
A pointer to a |
|
path |
r/w |
The path of the node or |
|
ref_count |
r/w |
The reference count or -1 if statically allocated. |
Methods¶
class |
|
|
|
|
|
|
|
|
Details¶
- class Gio.DBusNodeInfo¶
Information about nodes in a remote object hierarchy.
New in version 2.26.
- classmethod new_for_xml(xml_data)[source]¶
- Parameters:
xml_data (
str
) – Valid D-Bus introspection XML.- Raises:
- Returns:
A
Gio.DBusNodeInfo
structure orNone
if error is set. Free withGio.DBusNodeInfo.unref
().- Return type:
Parses xml_data and returns a
Gio.DBusNodeInfo
representing the data.The introspection XML must contain exactly one top-level <node> element.
Note that this routine is using a ‘GMarkup [glib-Simple-XML-Subset-Parser.description]’-based parser that only accepts a subset of valid XML documents.
New in version 2.26.
- generate_xml(indent, string_builder)[source]¶
- Parameters:
indent (
int
) – Indentation level.string_builder (
GLib.String
) – AGLib.String
to to append XML data to.
Appends an XML representation of self (and its children) to string_builder.
This function is typically used for generating introspection XML documents at run-time for handling the
org.freedesktop.DBus.Introspectable.Introspect
method.New in version 2.26.
- lookup_interface(name)[source]¶
- Parameters:
name (
str
) – A D-Bus interface name.- Returns:
A
Gio.DBusInterfaceInfo
orNone
if not found. Do not free, it is owned by self.- Return type:
Looks up information about an interface.
The cost of this function is O(n) in number of interfaces.
New in version 2.26.