mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
gtype: Clarify type of GInterfaceInitFunc
When passing a function to G_IMPLEMENT_INTERFACE, it actually has to take two arguments. Who knew? Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
d4cc0b32fd
commit
21adb30a83
@ -1779,7 +1779,7 @@ guint g_type_get_type_registration_serial (void);
|
||||
/**
|
||||
* G_IMPLEMENT_INTERFACE:
|
||||
* @TYPE_IFACE: The #GType of the interface to add
|
||||
* @iface_init: The interface init function
|
||||
* @iface_init: (type GInterfaceInitFunc): The interface init function, of type #GInterfaceInitFunc
|
||||
*
|
||||
* A convenience macro to ease interface addition in the `_C_` section
|
||||
* of G_DEFINE_TYPE_WITH_CODE() or G_DEFINE_ABSTRACT_TYPE_WITH_CODE().
|
||||
|
Loading…
Reference in New Issue
Block a user