glib/gio/gdbus-2.0/codegen
Will Thompson 4aba03562b gdbus-codegen: emit GUnixFDLists if an arg has type 'h'
Previously, if a method was not annotated with org.gtk.GDBus.C.UnixFD
then the generated code would never contain GUnixFDList parameters, even
if the method has 'h' (file descriptor) parameters. However, in this
case, the generated code is essentially useless: the method cannot be
called or handled except in degenerate cases where the file descriptors
are missing or ignored.

Check the argument types for 'h', and if present, generate code as if
org.gtk.GDBus.C.UnixFD annotation were specified.

This change will break any existing code which refers to the (useless)
wrappers for such methods. The workaround for such code is to add the
org.gtk.GDBus.C.UnixFD annotation, which will cause the same generated
code to be emitted before and after this change.

If this is found to cause widespread problems, we can explore a
different approach (perhaps emitting a warning from the code generator,
or annotating the symbols as deprecated).

https://gitlab.gnome.org/GNOME/glib/issues/1726
2019-09-02 20:47:20 +01:00
..
__init__.py gio/gdbus-2.0/codegen/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
.gitignore Git should ignore generated config.py file 2017-11-20 10:17:01 +00:00
codegen_docbook.py gdbus-codegen: Remove unnecessary parameters from the constructor 2018-01-15 16:10:12 +01:00
codegen_main.py gdbus-codegen: sort input files 2018-12-11 09:49:22 +00:00
codegen.py gdbus-codegen: process C.UnixFD annotation in one place 2019-09-02 06:54:37 +01:00
config.py.in meson: Improve MSVC and MinGW support and fix dependencies everywhere 2017-07-13 19:03:39 -04:00
dbustypes.py gdbus-codegen: emit GUnixFDLists if an arg has type 'h' 2019-09-02 20:47:20 +01:00
gdbus-codegen.in gdbus-codegen: Call abspath() earlier 2017-11-06 11:57:52 +00:00
meson.build build: Remove unsupported install directives 2019-07-24 12:45:02 +01:00
parser.py gdbus-codegen: Use Color's print_* methods 2018-01-15 16:03:03 +01:00
utils.py python: avoid equality check for None 2018-07-12 23:48:41 +02:00