Also use interface_ instead of interface in C files

This is because gtk-doc scans the function in the H file but reads the
docs from the C file. Annoying.

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2011-04-11 15:34:38 -04:00
parent 6cc4dc5b9b
commit 24533f2619
3 changed files with 120 additions and 120 deletions

View File

@ -50,56 +50,56 @@ g_dbus_interface_default_init (GDBusInterfaceIface *iface)
/** /**
* g_dbus_interface_get_info: * g_dbus_interface_get_info:
* @interface: An exported D-Bus interface. * @interface_: An exported D-Bus interface.
* *
* Gets D-Bus introspection information for the D-Bus interface * Gets D-Bus introspection information for the D-Bus interface
* implemented by @interface. * implemented by @interface_.
* *
* Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
* *
* Since: 2.30 * Since: 2.30
*/ */
GDBusInterfaceInfo * GDBusInterfaceInfo *
g_dbus_interface_get_info (GDBusInterface *interface) g_dbus_interface_get_info (GDBusInterface *interface_)
{ {
g_return_val_if_fail (G_IS_DBUS_INTERFACE (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE (interface_), NULL);
return G_DBUS_INTERFACE_GET_IFACE (interface)->get_info (interface); return G_DBUS_INTERFACE_GET_IFACE (interface_)->get_info (interface_);
} }
/** /**
* g_dbus_interface_get_object: * g_dbus_interface_get_object:
* @interface: An exported D-Bus interface. * @interface_: An exported D-Bus interface.
* *
* Gets the #GDBusObject that @interface belongs to, if any. * Gets the #GDBusObject that @interface_ belongs to, if any.
* *
* Returns: (transfer none): A #GDBusObject or %NULL. The returned * Returns: (transfer none): A #GDBusObject or %NULL. The returned
* reference belongs to @interface and should not be freed. * reference belongs to @interface_ and should not be freed.
* *
* Since: 2.30 * Since: 2.30
*/ */
GDBusObject * GDBusObject *
g_dbus_interface_get_object (GDBusInterface *interface) g_dbus_interface_get_object (GDBusInterface *interface_)
{ {
g_return_val_if_fail (G_IS_DBUS_INTERFACE (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE (interface_), NULL);
return G_DBUS_INTERFACE_GET_IFACE (interface)->get_object (interface); return G_DBUS_INTERFACE_GET_IFACE (interface_)->get_object (interface_);
} }
/** /**
* g_dbus_interface_set_object: * g_dbus_interface_set_object:
* @interface: An exported D-Bus interface. * @interface_: An exported D-Bus interface.
* @object: A #GDBusObject or %NULL. * @object: A #GDBusObject or %NULL.
* *
* Sets the #GDBusObject for @interface to @object. * Sets the #GDBusObject for @interface_ to @object.
* *
* Note that @interface will hold a weak reference to @object. * Note that @interface_ will hold a weak reference to @object.
* *
* Since: 2.30 * Since: 2.30
*/ */
void void
g_dbus_interface_set_object (GDBusInterface *interface, g_dbus_interface_set_object (GDBusInterface *interface_,
GDBusObject *object) GDBusObject *object)
{ {
g_return_if_fail (G_IS_DBUS_INTERFACE (interface)); g_return_if_fail (G_IS_DBUS_INTERFACE (interface_));
g_return_if_fail (object == NULL || G_IS_DBUS_OBJECT (object)); g_return_if_fail (object == NULL || G_IS_DBUS_OBJECT (object));
G_DBUS_INTERFACE_GET_IFACE (interface)->set_object (interface, object); G_DBUS_INTERFACE_GET_IFACE (interface_)->set_object (interface_, object);
} }

View File

@ -235,25 +235,25 @@ g_dbus_interface_stub_init (GDBusInterfaceStub *interface)
/** /**
* g_dbus_interface_stub_get_flags: * g_dbus_interface_stub_get_flags:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Gets the #GDBusInterfaceStubFlags that describes what the behavior * Gets the #GDBusInterfaceStubFlags that describes what the behavior
* of @interface * of @interface_
* *
* Returns: One or more flags from the #GDBusInterfaceStubFlags enumeration. * Returns: One or more flags from the #GDBusInterfaceStubFlags enumeration.
* *
* Since: 2.30 * Since: 2.30
*/ */
GDBusInterfaceStubFlags GDBusInterfaceStubFlags
g_dbus_interface_stub_get_flags (GDBusInterfaceStub *interface) g_dbus_interface_stub_get_flags (GDBusInterfaceStub *interface_)
{ {
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), G_DBUS_INTERFACE_STUB_FLAGS_NONE); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), G_DBUS_INTERFACE_STUB_FLAGS_NONE);
return interface->priv->flags; return interface_->priv->flags;
} }
/** /**
* g_dbus_interface_stub_set_flags: * g_dbus_interface_stub_set_flags:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* @flags: Flags from the #GDBusInterfaceStubFlags enumeration. * @flags: Flags from the #GDBusInterfaceStubFlags enumeration.
* *
* Sets flags describing what the behavior of @stub should be. * Sets flags describing what the behavior of @stub should be.
@ -261,44 +261,44 @@ g_dbus_interface_stub_get_flags (GDBusInterfaceStub *interface)
* Since: 2.30 * Since: 2.30
*/ */
void void
g_dbus_interface_stub_set_flags (GDBusInterfaceStub *interface, g_dbus_interface_stub_set_flags (GDBusInterfaceStub *interface_,
GDBusInterfaceStubFlags flags) GDBusInterfaceStubFlags flags)
{ {
g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface)); g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_));
if (interface->priv->flags != flags) if (interface_->priv->flags != flags)
{ {
interface->priv->flags = flags; interface_->priv->flags = flags;
g_object_notify (G_OBJECT (interface), "g-flags"); g_object_notify (G_OBJECT (interface_), "g-flags");
} }
} }
/** /**
* g_dbus_interface_stub_get_info: * g_dbus_interface_stub_get_info:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Gets D-Bus introspection information for the D-Bus interface * Gets D-Bus introspection information for the D-Bus interface
* implemented by @interface. * implemented by @interface_.
* *
* Returns: (transfer none): A #GDBusInterfaceInfo (never %NULL). Do not free. * Returns: (transfer none): A #GDBusInterfaceInfo (never %NULL). Do not free.
* *
* Since: 2.30 * Since: 2.30
*/ */
GDBusInterfaceInfo * GDBusInterfaceInfo *
g_dbus_interface_stub_get_info (GDBusInterfaceStub *interface) g_dbus_interface_stub_get_info (GDBusInterfaceStub *interface_)
{ {
GDBusInterfaceInfo *ret; GDBusInterfaceInfo *ret;
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), NULL);
ret = G_DBUS_INTERFACE_STUB_GET_CLASS (interface)->get_info (interface); ret = G_DBUS_INTERFACE_STUB_GET_CLASS (interface_)->get_info (interface_);
g_warn_if_fail (ret != NULL); g_warn_if_fail (ret != NULL);
return ret; return ret;
} }
/** /**
* g_dbus_interface_stub_get_vtable: * g_dbus_interface_stub_get_vtable:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Gets the interface vtable for the D-Bus interface implemented by * Gets the interface vtable for the D-Bus interface implemented by
* @interface. The returned function pointers should expect @interface * @interface_. The returned function pointers should expect @interface_
* itself to be passed as @user_data. * itself to be passed as @user_data.
* *
* Returns: A #GDBusInterfaceVTable (never %NULL). * Returns: A #GDBusInterfaceVTable (never %NULL).
@ -306,40 +306,40 @@ g_dbus_interface_stub_get_info (GDBusInterfaceStub *interface)
* Since: 2.30 * Since: 2.30
*/ */
GDBusInterfaceVTable * GDBusInterfaceVTable *
g_dbus_interface_stub_get_vtable (GDBusInterfaceStub *interface) g_dbus_interface_stub_get_vtable (GDBusInterfaceStub *interface_)
{ {
GDBusInterfaceVTable *ret; GDBusInterfaceVTable *ret;
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), NULL);
ret = G_DBUS_INTERFACE_STUB_GET_CLASS (interface)->get_vtable (interface); ret = G_DBUS_INTERFACE_STUB_GET_CLASS (interface_)->get_vtable (interface_);
g_warn_if_fail (ret != NULL); g_warn_if_fail (ret != NULL);
return ret; return ret;
} }
/** /**
* g_dbus_interface_stub_get_properties: * g_dbus_interface_stub_get_properties:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Gets all D-Bus properties for @interface. * Gets all D-Bus properties for @interface_.
* *
* Returns: A new, floating, #GVariant. Free with g_variant_unref(). * Returns: A new, floating, #GVariant. Free with g_variant_unref().
* *
* Since: 2.30 * Since: 2.30
*/ */
GVariant * GVariant *
g_dbus_interface_stub_get_properties (GDBusInterfaceStub *interface) g_dbus_interface_stub_get_properties (GDBusInterfaceStub *interface_)
{ {
GVariant *ret; GVariant *ret;
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), NULL);
ret = G_DBUS_INTERFACE_STUB_GET_CLASS (interface)->get_properties (interface); ret = G_DBUS_INTERFACE_STUB_GET_CLASS (interface_)->get_properties (interface_);
g_warn_if_fail (g_variant_is_floating (ret)); g_warn_if_fail (g_variant_is_floating (ret));
return ret; return ret;
} }
/** /**
* g_dbus_interface_stub_flush: * g_dbus_interface_stub_flush:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* If @interface has outstanding changes, request for these changes to be * If @interface_ has outstanding changes, request for these changes to be
* emitted immediately. * emitted immediately.
* *
* For example, an exported D-Bus interface may queue up property * For example, an exported D-Bus interface may queue up property
@ -351,10 +351,10 @@ g_dbus_interface_stub_get_properties (GDBusInterfaceStub *interface)
* Since: 2.30 * Since: 2.30
*/ */
void void
g_dbus_interface_stub_flush (GDBusInterfaceStub *interface) g_dbus_interface_stub_flush (GDBusInterfaceStub *interface_)
{ {
g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface)); g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_));
G_DBUS_INTERFACE_STUB_GET_CLASS (interface)->flush (interface); G_DBUS_INTERFACE_STUB_GET_CLASS (interface_)->flush (interface_);
} }
/* ---------------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------------- */
@ -582,48 +582,48 @@ stub_intercept_handle_method_call(GDBusConnection *connection,
/** /**
* g_dbus_interface_stub_get_connection: * g_dbus_interface_stub_get_connection:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Gets the connection that @interface is exported on, if any. * Gets the connection that @interface_ is exported on, if any.
* *
* Returns: (transfer none): A #GDBusConnection or %NULL if @interface is * Returns: (transfer none): A #GDBusConnection or %NULL if @interface_ is
* not exported anywhere. Do not free, the object belongs to @interface. * not exported anywhere. Do not free, the object belongs to @interface_.
* *
* Since: 2.30 * Since: 2.30
*/ */
GDBusConnection * GDBusConnection *
g_dbus_interface_stub_get_connection (GDBusInterfaceStub *interface) g_dbus_interface_stub_get_connection (GDBusInterfaceStub *interface_)
{ {
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), NULL);
return interface->priv->connection; return interface_->priv->connection;
} }
/** /**
* g_dbus_interface_stub_get_object_path: * g_dbus_interface_stub_get_object_path:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Gets the object that that @interface is exported on, if any. * Gets the object that that @interface_ is exported on, if any.
* *
* Returns: A string owned by @interface or %NULL if @interface is not exported * Returns: A string owned by @interface_ or %NULL if @interface_ is not exported
* anywhere. Do not free, the string belongs to @interface. * anywhere. Do not free, the string belongs to @interface_.
* *
* Since: 2.30 * Since: 2.30
*/ */
const gchar * const gchar *
g_dbus_interface_stub_get_object_path (GDBusInterfaceStub *interface) g_dbus_interface_stub_get_object_path (GDBusInterfaceStub *interface_)
{ {
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), NULL); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), NULL);
return interface->priv->object_path; return interface_->priv->object_path;
} }
/** /**
* g_dbus_interface_stub_export: * g_dbus_interface_stub_export:
* @interface: The D-Bus interface to export. * @interface_: The D-Bus interface to export.
* @connection: A #GDBusConnection to export @interface on. * @connection: A #GDBusConnection to export @interface_ on.
* @object_path: The path to export the interface at. * @object_path: The path to export the interface at.
* @error: Return location for error or %NULL. * @error: Return location for error or %NULL.
* *
* Exports @interface at @object_path on @connection. * Exports @interface_ at @object_path on @connection.
* *
* Use g_dbus_interface_stub_unexport() to unexport the object. * Use g_dbus_interface_stub_unexport() to unexport the object.
* *
@ -633,20 +633,20 @@ g_dbus_interface_stub_get_object_path (GDBusInterfaceStub *interface)
* Since: 2.30 * Since: 2.30
*/ */
gboolean gboolean
g_dbus_interface_stub_export (GDBusInterfaceStub *interface, g_dbus_interface_stub_export (GDBusInterfaceStub *interface_,
GDBusConnection *connection, GDBusConnection *connection,
const gchar *object_path, const gchar *object_path,
GError **error) GError **error)
{ {
gboolean ret; gboolean ret;
g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface), 0); g_return_val_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_), 0);
g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), 0); g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), 0);
g_return_val_if_fail (g_variant_is_object_path (object_path), 0); g_return_val_if_fail (g_variant_is_object_path (object_path), 0);
g_return_val_if_fail (error == NULL || *error == NULL, 0); g_return_val_if_fail (error == NULL || *error == NULL, 0);
ret = FALSE; ret = FALSE;
if (interface->priv->registration_id > 0) if (interface_->priv->registration_id > 0)
{ {
g_set_error_literal (error, g_set_error_literal (error,
G_IO_ERROR, G_IO_ERROR,
@ -655,27 +655,27 @@ g_dbus_interface_stub_export (GDBusInterfaceStub *interface,
goto out; goto out;
} }
g_assert (interface->priv->connection == NULL); g_assert (interface_->priv->connection == NULL);
g_assert (interface->priv->object_path == NULL); g_assert (interface_->priv->object_path == NULL);
g_assert (interface->priv->hooked_vtable == NULL); g_assert (interface_->priv->hooked_vtable == NULL);
/* Hook the vtable since we need to intercept method calls for /* Hook the vtable since we need to intercept method calls for
* ::g-authorize-method and for dispatching in thread vs * ::g-authorize-method and for dispatching in thread vs
* context * context
*/ */
interface->priv->hooked_vtable = g_memdup (g_dbus_interface_stub_get_vtable (interface), sizeof (GDBusInterfaceVTable)); interface_->priv->hooked_vtable = g_memdup (g_dbus_interface_stub_get_vtable (interface_), sizeof (GDBusInterfaceVTable));
interface->priv->hooked_vtable->method_call = stub_intercept_handle_method_call; interface_->priv->hooked_vtable->method_call = stub_intercept_handle_method_call;
interface->priv->connection = g_object_ref (connection); interface_->priv->connection = g_object_ref (connection);
interface->priv->object_path = g_strdup (object_path); interface_->priv->object_path = g_strdup (object_path);
interface->priv->registration_id = g_dbus_connection_register_object (connection, interface_->priv->registration_id = g_dbus_connection_register_object (connection,
object_path, object_path,
g_dbus_interface_stub_get_info (interface), g_dbus_interface_stub_get_info (interface_),
interface->priv->hooked_vtable, interface_->priv->hooked_vtable,
interface, interface_,
NULL, /* user_data_free_func */ NULL, /* user_data_free_func */
error); error);
if (interface->priv->registration_id == 0) if (interface_->priv->registration_id == 0)
goto out; goto out;
ret = TRUE; ret = TRUE;
@ -686,7 +686,7 @@ g_dbus_interface_stub_export (GDBusInterfaceStub *interface,
/** /**
* g_dbus_interface_stub_unexport: * g_dbus_interface_stub_unexport:
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Stops exporting an interface previously exported with * Stops exporting an interface previously exported with
* g_dbus_interface_stub_export(). * g_dbus_interface_stub_export().
@ -694,24 +694,24 @@ g_dbus_interface_stub_export (GDBusInterfaceStub *interface,
* Since: 2.30 * Since: 2.30
*/ */
void void
g_dbus_interface_stub_unexport (GDBusInterfaceStub *interface) g_dbus_interface_stub_unexport (GDBusInterfaceStub *interface_)
{ {
g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface)); g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_));
g_return_if_fail (interface->priv->registration_id > 0); g_return_if_fail (interface_->priv->registration_id > 0);
g_assert (interface->priv->connection != NULL); g_assert (interface_->priv->connection != NULL);
g_assert (interface->priv->object_path != NULL); g_assert (interface_->priv->object_path != NULL);
g_assert (interface->priv->hooked_vtable != NULL); g_assert (interface_->priv->hooked_vtable != NULL);
g_warn_if_fail (g_dbus_connection_unregister_object (interface->priv->connection, g_warn_if_fail (g_dbus_connection_unregister_object (interface_->priv->connection,
interface->priv->registration_id)); interface_->priv->registration_id));
g_object_unref (interface->priv->connection); g_object_unref (interface_->priv->connection);
g_free (interface->priv->object_path); g_free (interface_->priv->object_path);
interface->priv->connection = NULL; interface_->priv->connection = NULL;
interface->priv->object_path = NULL; interface_->priv->object_path = NULL;
interface->priv->hooked_vtable = NULL; interface_->priv->hooked_vtable = NULL;
interface->priv->registration_id = 0; interface_->priv->registration_id = 0;
} }
/* ---------------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------------- */

View File

@ -259,59 +259,59 @@ g_dbus_object_stub_get_object_path (GDBusObject *_object)
/** /**
* g_dbus_object_stub_add_interface: * g_dbus_object_stub_add_interface:
* @object: A #GDBusObjectStub. * @object: A #GDBusObjectStub.
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Adds @interface to @object. * Adds @interface_ to @object.
* *
* If @object already contains a #GDBusInterfaceStub with the same * If @object already contains a #GDBusInterfaceStub with the same
* interface name, it is removed before @interface is added. * interface name, it is removed before @interface_ is added.
* *
* Note that @object takes its own reference on @interface and holds * Note that @object takes its own reference on @interface_ and holds
* it until removed. * it until removed.
* *
* Since: 2.30 * Since: 2.30
*/ */
void void
g_dbus_object_stub_add_interface (GDBusObjectStub *object, g_dbus_object_stub_add_interface (GDBusObjectStub *object,
GDBusInterfaceStub *interface) GDBusInterfaceStub *interface_)
{ {
GDBusInterfaceInfo *info; GDBusInterfaceInfo *info;
g_return_if_fail (G_IS_DBUS_OBJECT_STUB (object)); g_return_if_fail (G_IS_DBUS_OBJECT_STUB (object));
g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface)); g_return_if_fail (G_IS_DBUS_INTERFACE_STUB (interface_));
info = g_dbus_interface_stub_get_info (interface); info = g_dbus_interface_stub_get_info (interface_);
g_object_ref (interface); g_object_ref (interface_);
g_dbus_object_stub_remove_interface_by_name (object, info->name); g_dbus_object_stub_remove_interface_by_name (object, info->name);
g_hash_table_insert (object->priv->map_name_to_iface, g_hash_table_insert (object->priv->map_name_to_iface,
g_strdup (info->name), g_strdup (info->name),
interface); interface_);
g_dbus_interface_set_object (G_DBUS_INTERFACE (interface), G_DBUS_OBJECT (object)); g_dbus_interface_set_object (G_DBUS_INTERFACE (interface_), G_DBUS_OBJECT (object));
g_signal_emit_by_name (object, g_signal_emit_by_name (object,
"interface-added", "interface-added",
interface); interface_);
} }
/** /**
* g_dbus_object_stub_remove_interface: * g_dbus_object_stub_remove_interface:
* @object: A #GDBusObjectStub. * @object: A #GDBusObjectStub.
* @interface: A #GDBusInterfaceStub. * @interface_: A #GDBusInterfaceStub.
* *
* Removes @interface from @object. * Removes @interface_ from @object.
* *
* Since: 2.30 * Since: 2.30
*/ */
void void
g_dbus_object_stub_remove_interface (GDBusObjectStub *object, g_dbus_object_stub_remove_interface (GDBusObjectStub *object,
GDBusInterfaceStub *interface) GDBusInterfaceStub *interface_)
{ {
GDBusInterfaceStub *other_interface; GDBusInterfaceStub *other_interface;
GDBusInterfaceInfo *info; GDBusInterfaceInfo *info;
g_return_if_fail (G_IS_DBUS_OBJECT_STUB (object)); g_return_if_fail (G_IS_DBUS_OBJECT_STUB (object));
g_return_if_fail (G_IS_DBUS_INTERFACE (interface)); g_return_if_fail (G_IS_DBUS_INTERFACE (interface_));
info = g_dbus_interface_stub_get_info (interface); info = g_dbus_interface_stub_get_info (interface_);
other_interface = g_hash_table_lookup (object->priv->map_name_to_iface, info->name); other_interface = g_hash_table_lookup (object->priv->map_name_to_iface, info->name);
if (other_interface == NULL) if (other_interface == NULL)
@ -321,24 +321,24 @@ g_dbus_object_stub_remove_interface (GDBusObjectStub *object,
info->name, info->name,
object->priv->object_path); object->priv->object_path);
} }
else if (other_interface != interface) else if (other_interface != interface_)
{ {
g_warning ("Tried to remove interface %p with name %s from object " g_warning ("Tried to remove interface %p with name %s from object "
"at path %s but the object has the interface %p", "at path %s but the object has the interface %p",
interface, interface_,
info->name, info->name,
object->priv->object_path, object->priv->object_path,
other_interface); other_interface);
} }
else else
{ {
g_object_ref (interface); g_object_ref (interface_);
g_warn_if_fail (g_hash_table_remove (object->priv->map_name_to_iface, info->name)); g_warn_if_fail (g_hash_table_remove (object->priv->map_name_to_iface, info->name));
g_dbus_interface_set_object (G_DBUS_INTERFACE (interface), NULL); g_dbus_interface_set_object (G_DBUS_INTERFACE (interface_), NULL);
g_signal_emit_by_name (object, g_signal_emit_by_name (object,
"interface-removed", "interface-removed",
interface); interface_);
g_object_unref (interface); g_object_unref (interface_);
} }
} }