DBusNodeInfo#
Added in version 2.26.
- class DBusNodeInfo(*args, **kwargs)#
Information about nodes in a remote object hierarchy.
Constructors#
- class DBusNodeInfo
- classmethod new_for_xml(xml_data: str) DBusNodeInfo#
Parses
xml_dataand returns aDBusNodeInforepresenting 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.
Added in version 2.26.
- Parameters:
xml_data – Valid D-Bus introspection XML.
Methods#
- class DBusNodeInfo
- generate_xml(indent: int, string_builder: String) None#
Appends an XML representation of
info(and its children) tostring_builder.This function is typically used for generating introspection XML documents at run-time for handling the
org.freedesktop.DBus.Introspectable.Introspectmethod.Added in version 2.26.
- Parameters:
indent – Indentation level.
string_builder – A
Stringto to append XML data to.
- lookup_interface(name: str) DBusInterfaceInfo | None#
Looks up information about an interface.
The cost of this function is O(n) in number of interfaces.
Added in version 2.26.
- Parameters:
name – A D-Bus interface name.
Fields#
- class DBusNodeInfo
- annotations#
A pointer to a
None-terminated array of pointers toDBusAnnotationInfostructures orNoneif there are no annotations.
- interfaces#
A pointer to a
None-terminated array of pointers toDBusInterfaceInfostructures orNoneif there are no interfaces.
- nodes#
A pointer to a
None-terminated array of pointers toDBusNodeInfostructures orNoneif there are no nodes.
- path#
The path of the node or
Noneif omitted. Note that this may be a relative path. See the D-Bus specification for more details.
- ref_count#
The reference count or -1 if statically allocated.