Information about nodes in a remote object hierarchy.
ref-countThe reference count or -1 if statically allocated.
pathThe path of the node or #f if omitted. Note that this may be a
relative path. See the D-Bus specification for more details.
interfacesA pointer to a #f-terminated array of pointers to
<GDBusInterfaceInfo> structures or
#f if there are no interfaces.
nodesA pointer to a #f-terminated array of pointers to
<GDBusNodeInfo> structures or #f if
there are no nodes.
annotationsA pointer to a #f-terminated array of pointers to
<GDBusAnnotationInfo> structures or
#f if there are no annotations.
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.
Passed: a <GDBusNodeInfo>.
Passed: an unsigned 32-bit integer.
Indentation level.
Passed: a <GString>.
A <GString> to to append XML data to.
Looks up information about an interface.
The cost of this function is O(n) in number of interfaces.
Passed: a <GDBusNodeInfo>.
Passed: a string.
A D-Bus interface name.
Returned: a <GDBusInterfaceInfo>, or
#f.
A <GDBusInterfaceInfo> or #f if
not found. Do not free, it is owned by self.
Parses xml-data and returns a
<GDBusNodeInfo> representing the data.
The introspection XML must contain exactly one top-level <node>
element.
Note that this routine is using a GMarkup-based parser that only accepts a subset of valid XML documents.
Passed: a string.
Valid D-Bus introspection XML.
Returned: a <GDBusNodeInfo>.
A <GDBusNodeInfo> structure or #f if
error is set. Free with dbus-node-info:unref.
If self is statically allocated does nothing. Otherwise increases the reference count.
Passed: a <GDBusNodeInfo>.
Returned: a <GDBusNodeInfo>.
The same self.
If self is statically allocated, does nothing. Otherwise decreases the reference count of self. When its reference count drops to 0, the memory used is freed.
Passed: a <GDBusNodeInfo>.