Class DBusInterfaceInfo

All Implemented Interfaces:
PointerInterface

public class DBusInterfaceInfo extends Record
Information about a D-Bus interface.

https://docs.gtk.org/gio/struct.DBusInterfaceInfo.html

  • Field Details

    • REF_COUNT

      public static final String REF_COUNT
      The reference count or -1 if statically allocated.
      See Also:
    • NAME

      public static final String NAME
      The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".
      See Also:
  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFieldRefCount

      public void setFieldRefCount(int ref_count)
      The reference count or -1 if statically allocated.
    • getFieldRefCount

      public int getFieldRefCount()
      The reference count or -1 if statically allocated.
    • setFieldName

      public void setFieldName(Str name)
      The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".
    • getFieldName

      public Str getFieldName()
      The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".
    • cacheBuild

      public void cacheBuild()
      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.
    • cacheRelease

      public void cacheRelease()
      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.
    • generateXml

      public void generateXml(int indent, @Nonnull GString 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.
      Parameters:
      indent - Indentation level.
      string_builder - A #GString to to append XML data to.
    • lookupMethod

      public DBusMethodInfo lookupMethod(@Nonnull Str 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.
      Parameters:
      name - A D-Bus method name (typically in CamelCase)
      Returns:
      A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info.
    • lookupMethod

      public DBusMethodInfo lookupMethod(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.
      Parameters:
      name - A D-Bus method name (typically in CamelCase)
      Returns:
      A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info.
    • lookupProperty

      public DBusPropertyInfo lookupProperty(@Nonnull Str 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.
      Parameters:
      name - A D-Bus property name (typically in CamelCase).
      Returns:
      A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info.
    • lookupProperty

      public DBusPropertyInfo lookupProperty(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.
      Parameters:
      name - A D-Bus property name (typically in CamelCase).
      Returns:
      A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info.
    • lookupSignal

      public DBusSignalInfo lookupSignal(@Nonnull Str 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.
      Parameters:
      name - A D-Bus signal name (typically in CamelCase)
      Returns:
      A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info.
    • lookupSignal

      public DBusSignalInfo lookupSignal(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.
      Parameters:
      name - A D-Bus signal name (typically in CamelCase)
      Returns:
      A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info.
    • ref

      public DBusInterfaceInfo ref()
      If @info is statically allocated does nothing. Otherwise increases
      the reference count.
      Returns:
      The same @info.
    • unref

      public void 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.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()