Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: object
Base type for D-Bus interfaces. The GDBusInterface type is the base type
for D-Bus interfaces both on the service side (see
[class@Gio.DBusInterfaceSkeleton]) and client side (see
[class@Gio.DBusProxy]).
DBusInterface (Handle = null)
Creates a new
DBusInterfaceby 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.dup_object ()
Gets the #GDBusObject that @interface_ belongs to, if any.
get_info ()
Gets D-Bus introspection information for the D-Bus interface implemented by @interface_. This can return %NULL if no #GDBusInterfaceInfo was provided during construction of @interface_ and is also not made available otherwise. For example, #GDBusProxy implements #GDBusInterface but allows for a %NULL #GDBusInterfaceInfo.
get_object ()
Gets the #GDBusObject that @interface_ belongs to, if any. It is not safe to use the returned object if @interface_ or the returned object is being used from other threads. See g_dbus_interface_dup_object() for a thread-safe alternative.
set_object (object object)
Sets the #GDBusObject for @interface_ to @object. Note that @interface_ will hold a weak reference to @object.
object is A #GDBusObject or %NULL..None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.