Class (GI Struct)

Gio-2.0GioDBusInterfaceInfoSince 2.26

Information about a D-Bus interface.

2.26

Index

Constructors

Properties

annotations: DBusAnnotationInfo[]
methods: DBusMethodInfo[]
name: string
ref_count: number
signals: DBusSignalInfo[]

Methods

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

    Returns void

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

    Returns void

  • 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

    Returns void

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

    Parameters

    • name: string

      A D-Bus method name (typically in CamelCase)

    Returns DBusMethodInfo

    A Gio.DBusMethodInfo or null if not found. Do not free, it is owned by info.

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

    Parameters

    • name: string

      A D-Bus property name (typically in CamelCase).

    Returns DBusPropertyInfo

    A Gio.DBusPropertyInfo or null if not found. Do not free, it is owned by info.

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

    Parameters

    • name: string

      A D-Bus signal name (typically in CamelCase)

    Returns DBusSignalInfo

    A Gio.DBusSignalInfo or null if not found. Do not free, it is owned by info.

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

    Returns void