mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-29 08:56:15 +01:00
Merge branch 'iface-init-docs' into 'master'
gtype: Document type for iface_default_init() function See merge request GNOME/glib!564
This commit is contained in:
commit
f63b1da918
@ -1753,6 +1753,12 @@ guint g_type_get_type_registration_serial (void);
|
|||||||
* name `t_n ## _default_init`, and the interface structure to have the
|
* name `t_n ## _default_init`, and the interface structure to have the
|
||||||
* name `TN ## Interface`.
|
* name `TN ## Interface`.
|
||||||
*
|
*
|
||||||
|
* The initialization function has signature
|
||||||
|
* `static void t_n ## _default_init (TypeName##Interface *klass);`, rather than
|
||||||
|
* the full #GInterfaceInitFunc signature, for brevity and convenience. If you
|
||||||
|
* need to use an initialization function with an `iface_data` argument, you
|
||||||
|
* must write the #GTypeInterface definitions manually.
|
||||||
|
*
|
||||||
* Since: 2.24
|
* Since: 2.24
|
||||||
*/
|
*/
|
||||||
#define G_DEFINE_INTERFACE(TN, t_n, T_P) G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)
|
#define G_DEFINE_INTERFACE(TN, t_n, T_P) G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)
|
||||||
|
Loading…
Reference in New Issue
Block a user