3.3 <GDBusInterfaceInfo>

Structure: <GDBusInterfaceInfo>

Information about a D-Bus interface.

Fields

ref-count

The reference count or -1 if statically allocated.

name

The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".

methods

A pointer to a #f-terminated array of pointers to <GDBusMethodInfo> structures or #f if there are no methods.

signals

A pointer to a #f-terminated array of pointers to <GDBusSignalInfo> structures or #f if there are no signals.

properties

A pointer to a #f-terminated array of pointers to <GDBusPropertyInfo> structures or #f if there are no properties.

annotations

A pointer to a #f-terminated array of pointers to <GDBusAnnotationInfo> structures or #f if there are no annotations.

Procedures

Method: dbus-interface-info:cache-build self
Method: cache-build self

Builds a lookup-cache to speed up dbus-interface-info:lookup-method, dbus-interface-info:lookup-signal and dbus-interface-info:lookup-property.

If this has already been called with self, the existing cache is used and its use count is increased.

Note that self cannot be modified until dbus-interface-info:cache-release is called.

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusInterfaceInfo>.

Method: dbus-interface-info:cache-release self
Method: cache-release self

Decrements the usage count for the cache for self built by dbus-interface-info:cache-build (if any) and frees the resources used by the cache if the usage count drops to zero.

self

Passed: a <GDBusInterfaceInfo>.

A GDBusInterfaceInfo

Method: dbus-interface-info:generate-xml self indent string-builder
Method: generate-xml self indent string-builder

Appends an XML representation of self (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.

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusNodeInfo>

indent

Passed: an unsigned 32-bit integer.

Indentation level.

string-builder

Passed: a <GString>.

A <GString> to to append XML data to.

Method: dbus-interface-info:lookup-method self name ⇒ %return
Method: lookup-method self name ⇒ %return

Looks up information about a method.

The cost of this function is O(n) in number of methods unless dbus-interface-info:cache-build has been used on self.

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusInterfaceInfo>.

name

Passed: a string.

A D-Bus method name (typically in CamelCase)

%return

Returned: a <GDBusMethodInfo>, or #f.

A <GDBusMethodInfo> or #f if not found. Do not free, it is owned by self.

Method: dbus-interface-info:lookup-property self name ⇒ %return
Method: lookup-property self name ⇒ %return

Looks up information about a property.

The cost of this function is O(n) in number of properties unless dbus-interface-info:cache-build has been used on self.

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusInterfaceInfo>.

name

Passed: a string.

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

%return

Returned: a <GDBusPropertyInfo>, or #f.

A <GDBusPropertyInfo> or #f if not found. Do not free, it is owned by self.

Method: dbus-interface-info:lookup-signal self name ⇒ %return
Method: lookup-signal self name ⇒ %return

Looks up information about a signal.

The cost of this function is O(n) in number of signals unless dbus-interface-info:cache-build has been used on self.

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusInterfaceInfo>.

name

Passed: a string.

A D-Bus signal name (typically in CamelCase)

%return

Returned: a <GDBusSignalInfo>, or #f.

A <GDBusSignalInfo> or #f if not found. Do not free, it is owned by self.

Method: dbus-interface-info:ref self ⇒ %return
Method: ref self ⇒ %return

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

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusInterfaceInfo>

%return

Returned: a <GDBusInterfaceInfo>.

The same self.

Method: dbus-interface-info:unref self
Method: unref self

If self is statically allocated, does nothing. Otherwise decreases the reference count of self. When its reference count drops to 0, the memory used is freed.

self

Passed: a <GDBusInterfaceInfo>.

A <GDBusInterfaceInfo>.