mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
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:
@@ -232,7 +232,7 @@ type_name##_register_type (GTypeModule *type_module) \
|
|||||||
*/
|
*/
|
||||||
#define G_IMPLEMENT_INTERFACE_DYNAMIC(TYPE_IFACE, iface_init) { \
|
#define G_IMPLEMENT_INTERFACE_DYNAMIC(TYPE_IFACE, iface_init) { \
|
||||||
const GInterfaceInfo g_implement_interface_info = { \
|
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); \
|
g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
|
||||||
}
|
}
|
||||||
|
@@ -93,8 +93,7 @@ dynamic_object_class_finalize (DynamicObjectClass *class)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dynamic_object_iface_init (gpointer g_iface,
|
dynamic_object_iface_init (TestIface *iface)
|
||||||
gpointer iface_data)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user