Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DBusInterface

[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]).

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • DBusInterface (Handle = null)

    Creates a new DBusInterface by wrapping a native handle or another wrapper.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r 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.

    • @p object is A #GDBusObject or %NULL..
    • @r None.