mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02:00
gdbus-codegen: Only generate autocleanup when instructed to
This adds a new --c-generate-autocleanup option to gdbus-codegen which can be used to instruct gdbus-codegen about what autocleanup definitions to emit. Doing this unconditionally was found to interfere with existing code out in the wild. The new option takes an argument that can be none, objects or all; to indicate whether to generate no autocleanup functions, only do it for object types, or do it for interface types as well. The default is 'objects', which matches the unconditional behavior of gdbus-codegen on the 2.48 branch. https://bugzilla.gnome.org/show_bug.cgi?id=763379
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<arg><option>--generate-c-code</option> <replaceable>OUTFILES</replaceable></arg>
|
||||
<arg><option>--c-namespace</option> <replaceable>YourProject</replaceable></arg>
|
||||
<arg><option>--c-generate-object-manager</option></arg>
|
||||
<arg><option>--c-generate-autocleanup</option> none|objects|all</arg>
|
||||
<arg><option>--generate-docbook</option> <replaceable>OUTFILES</replaceable></arg>
|
||||
<arg><option>--xml-files</option> <replaceable>FILE</replaceable></arg>
|
||||
<group choice="plain" rep="repeat">
|
||||
@@ -214,6 +215,21 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--c-generate-autocleanup</option> none|objects|all</term>
|
||||
<listitem>
|
||||
<para>
|
||||
This option influences what types autocleanup functions are
|
||||
generated for. 'none' means to not generate any autocleanup functions.
|
||||
'objects' means to generate them for object types, and 'all' means to
|
||||
generate them for object types and interfaces. The default is 'objects'
|
||||
due to a corner case in backwards compatibility with a few projects,
|
||||
but you should likely switch your project to use 'all'.
|
||||
This option was added in GLib 2.50.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--annotate</option> <replaceable>ELEMENT</replaceable> <replaceable>KEY</replaceable> <replaceable>VALUE</replaceable></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user