Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
Information about a D-Bus interface.
GDBusInterfaceInfo (Handle = null)
Creates a new
DBusInterfaceInfoby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.cache_build ()
Builds a lookup-cache to speed up g_dbus_interface_info_lookup_method(), g_dbus_interface_info_lookup_signal() and g_dbus_interface_info_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 g_dbus_interface_info_cache_release() is called.
None.cache_release ()
Decrements the usage count for the cache for @info built by g_dbus_interface_info_cache_build() (if any) and frees the resources used by the cache if the usage count drops to zero.
None.generate_xml (int indent, object string_builder)
Appends an XML representation of @info (and its children) to
This function is typically used for generating introspection XML documents at run-time for handling the org.freedesktop.DBus.Introspectable.Introspect method.indent is Indentation level..string_builder is A #GString to to append XML data to..None.lookup_method (string name)
Looks up information about a method. The cost of this function is O(n) in number of methods unless g_dbus_interface_info_cache_build() has been used on @info.
name is A D-Bus method name (typically in CamelCase).A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned bylookup_property (string name)
Looks up information about a property. The cost of this function is O(n) in number of properties unless g_dbus_interface_info_cache_build() has been used on @info.
name is A D-Bus property name (typically in CamelCase)..A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info..lookup_signal (string name)
Looks up information about a signal. The cost of this function is O(n) in number of signals unless g_dbus_interface_info_cache_build() has been used on @info.
name is A D-Bus signal name (typically in CamelCase).A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned byref ()
If @info is statically allocated does nothing. Otherwise increases the reference count.
The same @info..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.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.