gtype: add type declaration macros for headers

Desktop / GNOME / GLib - Ryan Lortie [desrt.ca] - 27 January 2015 05:07 UTC

Add G_DECLARE_DERIVABLE_TYPE() and G_DECLARE_FINAL_TYPE() to allow skipping almost all of the typical GObject boilerplate code.

These macros make some assumptions about GObject best practice that mean that they may not be usable with older classes that have to preserve API/ABI compatibility with a time before these practices existed.

https://bugzilla.gnome.org/show_bug.cgi?id=389585

3b4cb28 gtype: add type declaration macros for headers
docs/reference/gobject/gobject-sections.txt | 2 +
gobject/gtype.h | 158 +++++++++++++++++++++++++++
2 files changed, 160 insertions(+)

Upstream: git.gnome.org


  • Share