Commit f63b1da9 authored by Simon McVittie's avatar Simon McVittie

Merge branch 'iface-init-docs' into 'master'

gtype: Document type for iface_default_init() function

See merge request !564
parents 986b0a59 154b24c0
Pipeline #48947 passed with stages
in 13 minutes and 37 seconds
......@@ -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 `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
*/
#define G_DEFINE_INTERFACE(TN, t_n, T_P) G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment