DBusInterfaceInfo

Various data structures and convenience routines to parse and generate D-Bus introspection XML. Introspection information is used when registering objects with g_dbus_connection_register_object().

The format of D-Bus introspection XML is specified in the D-Bus specification.

Constructors

this
this(GDBusInterfaceInfo* gDBusInterfaceInfo)

Sets our main struct and passes it to the parent class

Members

Functions

cacheBuild
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. Since 2.30

cacheRelease
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. Since 2.30

doref
DBusInterfaceInfo doref()

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

generateXml
void generateXml(uint indent, StringG stringBuilder)

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. Since 2.26

getDBusInterfaceInfoStruct
GDBusInterfaceInfo* getDBusInterfaceInfoStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

lookupMethod
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. Since 2.26

lookupProperty
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. Since 2.26

lookupSignal
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. Since 2.26

unref
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. Since 2.26

Variables

gDBusInterfaceInfo
GDBusInterfaceInfo* gDBusInterfaceInfo;

the main Gtk struct

Meta