Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GDBusInterfaceInfo

[12:7] extends: object

Information about a D-Bus interface.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GDBusInterfaceInfo (Handle = null)

    Creates a new DBusInterfaceInfo 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.
  • 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.

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

    • @r None.
  • generate_xml (int indent, object string_builder)

    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.
    • @p indent is Indentation level..
    • @p string_builder is A #GString to to append XML data to..
    • @r 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.

    • @p name is A D-Bus method name (typically in CamelCase).
    • @r A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by
    • @info.. ``
  • lookup_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.

    • @p name is A D-Bus property name (typically in CamelCase)..
    • @r 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.

    • @p name is A D-Bus signal name (typically in CamelCase).
    • @r A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by
    • @info.. ``
  • ref ()

    If @info is statically allocated does nothing. Otherwise increases the reference count.

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

    • @r None.