glib/gio/gdbus-2.0/codegen
Simon McVittie d65c8c30a9 GDBus: Add G_DBUS_METHOD_INVOCATION_HANDLED, _UNHANDLED
Like G_SOURCE_REMOVE and G_SOURCE_CONTINUE, these make it clearer what
it means to return TRUE or FALSE.

In particular, in GDBus methods that fail, the failure case still needs
to return TRUE (unlike the typical GError pattern), leading to comments
like this:

    g_dbus_method_invocation_return_error (invocation, ...);
    return TRUE;    /* handled */

which can now be replaced by:

    g_dbus_method_invocation_return_error (invocation, ...);
    return G_DUS_METHOD_INVOCATION_HANDLED;

G_DBUS_METHOD_INVOCATION_UNHANDLED is added for symmetry, but is very
rarely (perhaps never?) useful in practice.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2020-10-01 16:32:50 +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: Allow decorating symbols in headers 2020-05-28 17:20:22 +08:00
codegen.py GDBus: Add G_DBUS_METHOD_INVOCATION_HANDLED, _UNHANDLED 2020-10-01 16:32:50 +01:00
config.py.in gdbus-codegen: Add --glib-max-allowed argument 2020-01-27 10:42:26 +00: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: Rework path construction to reliably add prefix 2020-02-07 17:12:35 +00: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