glib/gio/gdbus-2.0/codegen
Philip Withnall e3f80b9254 gdbus-codegen: Emit GUnixFDLists if an arg has type h w/ min-version
This is a reimplementation of commit
4aba03562b from Will Thompson, but
conditional on the caller passing `--glib-min-version 2.64` to
`gdbus-codegen` to explicitly opt-in to the new behaviour.

From the commit message for that commit:

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.

Includes a unit test too.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #1726
2019-12-11 10:40:07 +00: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: Emit GUnixFDLists if an arg has type h w/ min-version 2019-12-11 10:40:07 +00:00
codegen.py gdbus-codegen: Add a --glib-min-version argument 2019-12-11 10:40:07 +00: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 w/ min-version 2019-12-11 10:40:07 +00: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: Emit GUnixFDLists if an arg has type h w/ min-version 2019-12-11 10:40:07 +00:00
utils.py python: avoid equality check for None 2018-07-12 23:48:41 +02:00