gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen
2011-04-25 09:29:18 -04:00
parent 58eb4da5c5
commit bbe945183b
19 changed files with 685 additions and 359 deletions

View File

@@ -146,60 +146,3 @@ g_dbus_object_get_interface (GDBusObject *object,
g_return_val_if_fail (g_dbus_is_interface_name (interface_name), NULL);
return iface->get_interface (object, interface_name);
}
/**
* g_dbus_object_peek_with_typecheck:
* @object: A #GDBusObject.
* @interface_name: A D-Bus interface name.
* @type: The #GType that the returned object must conform to.
*
* Like g_dbus_object_lookup_with_typecheck() except that the caller
* does not own a reference to the returned object.
*
* <note><para>This function is intended to only be used in type
* implementations.</para></note>
*
* Returns: (transfer none): A #GDBusInterface implementing @type or
* %NULL if not found. Do not free the returned object, it is owned
* by @object.
*
* Since: 2.30
*/
gpointer
g_dbus_object_peek_with_typecheck (GDBusObject *object,
const gchar *interface_name,
GType type)
{
GDBusObjectIface *iface = G_DBUS_OBJECT_GET_IFACE (object);
g_return_val_if_fail (g_dbus_is_interface_name (interface_name), NULL);
return iface->peek_with_typecheck (object, interface_name, type);
}
/**
* g_dbus_object_lookup_with_typecheck:
* @object: A #GDBusObject.
* @interface_name: A D-Bus interface name.
* @type: The #GType that the returned object must conform to.
*
* Like g_dbus_object_get_interface() but warns on stderr if the
* returned object, if any, does not conform to @type.
*
* <note><para>This function is intended to only be used in type
* implementations.</para></note>
*
* Returns: (transfer full): A #GDBusInterface implementing @type or
* %NULL if not found. Free with g_object_unref().
*
* Since: 2.30
*/
gpointer
g_dbus_object_lookup_with_typecheck (GDBusObject *object,
const gchar *interface_name,
GType type)
{
GDBusObjectIface *iface = G_DBUS_OBJECT_GET_IFACE (object);
g_return_val_if_fail (g_dbus_is_interface_name (interface_name), NULL);
return iface->lookup_with_typecheck (object, interface_name, type);
}