Cast iface_init to GInterfaceInitFunc

This is in line with what all other type define macros do.

https://bugzilla.gnome.org/show_bug.cgi?id=508157
This commit is contained in:
Alexander Larsson 2009-11-26 12:30:14 +01:00
parent 36646f46ab
commit b35fa1994d
2 changed files with 2 additions and 3 deletions

View File

@ -232,7 +232,7 @@ type_name##_register_type (GTypeModule *type_module) \
*/
#define G_IMPLEMENT_INTERFACE_DYNAMIC(TYPE_IFACE, iface_init) { \
const GInterfaceInfo g_implement_interface_info = { \
iface_init, NULL, NULL \
(GInterfaceInitFunc) iface_init, NULL, NULL \
}; \
g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
}

View File

@ -93,8 +93,7 @@ dynamic_object_class_finalize (DynamicObjectClass *class)
}
static void
dynamic_object_iface_init (gpointer g_iface,
gpointer iface_data)
dynamic_object_iface_init (TestIface *iface)
{
}