Function

GioDBusNodeInfonew_for_xml

Declaration

GDBusNodeInfo*
g_dbus_node_info_new_for_xml (
  const gchar* xml_data,
  GError** error
)

Description

Parses xml_data and returns a GDBusNodeInfo representing the data.

The introspection XML must contain exactly one top-level element.

Note that this routine is using a [GMarkup][glib-Simple-XML-Subset-Parser.description]-based parser that only accepts a subset of valid XML documents.

Available since:2.26

Parameters

xml_data const gchar*
 

Valid D-Bus introspection XML.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GDBusNodeInfo
 

A GDBusNodeInfo structure or NULL if error is set. Free with g_dbus_node_info_unref().

 The caller of the function takes ownership of the data, and is responsible for freeing it.