Gio.DBusInterfaceInfo¶
record (struct)
Information about a D-Bus interface.
Methods¶
cache_build¶
Builds a lookup-cache to speed up
DBusInterfaceInfo.lookup_method,
DBusInterfaceInfo.lookup_signal and
DBusInterfaceInfo.lookup_property.
If this has already been called with info, the existing cache is
used and its use count is increased.
Note that info cannot be modified until
DBusInterfaceInfo.cache_release is called.
cache_release¶
Decrements the usage count for the cache for info built by
DBusInterfaceInfo.cache_build (if any) and frees the
resources used by the cache if the usage count drops to zero.
generate_xml¶
Appends an XML representation of info (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.
Parameters:
indent— Indentation level.string_builder— AGLib.Stringto to append XML data to.
lookup_method¶
Looks up information about a method.
The cost of this function is O(n) in number of methods unless
DBusInterfaceInfo.cache_build has been used on info.
Parameters:
name— A D-Bus method name (typically in CamelCase)
lookup_property¶
Looks up information about a property.
The cost of this function is O(n) in number of properties unless
DBusInterfaceInfo.cache_build has been used on info.
Parameters:
name— A D-Bus property name (typically in CamelCase).
lookup_signal¶
Looks up information about a signal.
The cost of this function is O(n) in number of signals unless
DBusInterfaceInfo.cache_build has been used on info.
Parameters:
name— A D-Bus signal name (typically in CamelCase)
ref¶
If info is statically allocated does nothing. Otherwise increases
the reference count.
unref¶
If info is statically allocated, does nothing. Otherwise decreases
the reference count of info. When its reference count drops to 0,
the memory used is freed.