@args: the parameters to insert into the format string.
-<!-- ##### MACRO g_message ##### -->
+<!-- ##### FUNCTION g_message ##### -->
<para>
A convenience function/macro to log a normal message.
</para>
+@format:
+@Varargs:
+<!-- # Unused Parameters # -->
@...: format string, followed by parameters to insert into the format string (as with printf())
-<!-- ##### MACRO g_warning ##### -->
+<!-- ##### FUNCTION g_warning ##### -->
<para>
A convenience function/macro to log a warning message.
</para>
variable (see <ulink url="glib-running.html">Running GLib Applications</ulink>).
</para>
+@format:
+@Varargs:
+<!-- # Unused Parameters # -->
@...: format string, followed by parameters to insert into the format string (as with printf())
-<!-- ##### MACRO g_critical ##### -->
+<!-- ##### FUNCTION g_critical ##### -->
<para>
Logs a "critical warning" (#G_LOG_LEVEL_CRITICAL). It's more or less
application-defined what constitutes a critical vs. a regular
<ulink url="glib-running.html">Running GLib Applications</ulink>).
</para>
+@format:
+@Varargs:
+<!-- # Unused Parameters # -->
@...: format string, followed by parameters to insert into the format string (as with printf())
-<!-- ##### MACRO g_error ##### -->
+<!-- ##### FUNCTION g_error ##### -->
<para>
A convenience function/macro to log an error message.
Error messages are always fatal, resulting in a call to
assertion failure.
</para>
+@format:
+@Varargs:
+<!-- # Unused Parameters # -->
@...: format string, followed by parameters to insert into the format string (as with printf())
-<!-- ##### MACRO g_debug ##### -->
+<!-- ##### FUNCTION g_debug ##### -->
<para>
A convenience function/macro to log a debug message.
</para>
-@...: format string, followed by parameters to insert into the format string (as with printf())
+@format:
+@Varargs:
@Since: 2.6
+<!-- # Unused Parameters # -->
+@...: format string, followed by parameters to insert into the format string (as with printf())
<!-- ##### FUNCTION g_log_set_handler ##### -->
/* ---------------------------------------------------------------------------------------------------- */
static GDBusNodeInfo *introspection_data = NULL;
-static const GDBusInterfaceInfo *manager_interface_info = NULL;
-static const GDBusInterfaceInfo *block_interface_info = NULL;
-static const GDBusInterfaceInfo *partition_interface_info = NULL;
+static GDBusInterfaceInfo *manager_interface_info = NULL;
+static GDBusInterfaceInfo *block_interface_info = NULL;
+static GDBusInterfaceInfo *partition_interface_info = NULL;
/* Introspection data for the service we are exporting */
static const gchar introspection_xml[] =
return nodes;
}
-static GPtrArray *
+static GDBusInterfaceInfo **
subtree_introspect (GDBusConnection *connection,
const gchar *sender,
const gchar *object_path,
GPtrArray *p;
p = g_ptr_array_new ();
- if (g_strcmp0 (node, "/") == 0)
+ if (node == NULL)
{
- g_ptr_array_add (p, (gpointer) manager_interface_info);
+ g_ptr_array_add (p, g_dbus_interface_info_ref (manager_interface_info));
}
else
{
- g_ptr_array_add (p, (gpointer) block_interface_info);
+ g_ptr_array_add (p, g_dbus_interface_info_ref (block_interface_info));
if (strlen (node) == 4)
- g_ptr_array_add (p, (gpointer) partition_interface_info);
+ g_ptr_array_add (p,
+ g_dbus_interface_info_ref (partition_interface_info));
}
- return p;
+ g_ptr_array_add (p, NULL);
+
+ return (GDBusInterfaceInfo **) g_ptr_array_free (p, FALSE);
}
static const GDBusInterfaceVTable *