DBusNodeInfo

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(GDBusNodeInfo* gDBusNodeInfo)

Sets our main struct and passes it to the parent class

this
this(string xmlData)

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

Members

Functions

doref
DBusNodeInfo 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

getDBusNodeInfoStruct
GDBusNodeInfo* getDBusNodeInfoStruct()
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*

lookupInterface
DBusInterfaceInfo lookupInterface(string name)

Looks up information about an interface. The cost of this function is O(n) in number of interfaces. 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

gDBusNodeInfo
GDBusNodeInfo* gDBusNodeInfo;

the main Gtk struct

Meta