mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 18:16:34 +02:00
Revert "codegen: Add g_autoptr support for the shared GInterface"
This reverts commit ca189aa321
.
The new g_autoptr symbol definition in GDBus generated code breaks
existing code that uses gdbus-codegen and defines its own auto clean up
symbols.
This needs further discussion before cherry-picking to the stable
branch.
https://bugzilla.gnome.org/show_bug.cgi?id=763379
This commit is contained in:
@@ -307,10 +307,6 @@ class CodeGenerator:
|
||||
|
||||
self.h.write('};\n')
|
||||
self.h.write('\n')
|
||||
self.h.write('#if GLIB_CHECK_VERSION(2, 44, 0)\n')
|
||||
self.h.write('G_DEFINE_AUTOPTR_CLEANUP_FUNC (%s, g_object_unref)\n' % (i.camel_name))
|
||||
self.h.write('#endif\n')
|
||||
self.h.write('\n')
|
||||
self.h.write('GType %s_get_type (void) G_GNUC_CONST;\n'%(i.name_lower))
|
||||
self.h.write('\n')
|
||||
self.h.write('GDBusInterfaceInfo *%s_interface_info (void);\n'%(i.name_lower))
|
||||
|
Reference in New Issue
Block a user