Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GDBusNodeInfo

[12:7] extends: object

Information about nodes in a remote object hierarchy.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GDBusNodeInfo (xml_data = null)

    Parses @xml_data and returns a #GDBusNodeInfo representing the data. The introspection XML must contain exactly one top-level <node> element. Note that this routine is using a GMarkup-based parser that only accepts a subset of valid XML documents.

    • @p xml_data is Valid D-Bus introspection XML..
  • 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.
  • 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_interface (string name)

    Looks up information about an interface. The cost of this function is O(n) in number of interfaces.

    • @p name is A D-Bus interface name..
    • @r A #GDBusInterfaceInfo 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.