common: Add a backport of G_DBUS_METHOD_INVOCATION_HANDLED

This is syntactic sugar added in GLib 2.67.0, which makes it more clearly
correct when we return TRUE after a GDBus error.

Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit cc7f863707)
This commit is contained in:
Simon McVittie
2020-12-07 18:08:16 +00:00
committed by Alexander Larsson
parent 003fa230c6
commit d1d05a718b

View File

@@ -22,6 +22,12 @@
#define __FLATPAK_UTILS_BASE_H__
#include <glib.h>
#include <gio/gio.h>
#ifndef G_DBUS_METHOD_INVOCATION_HANDLED
# define G_DBUS_METHOD_INVOCATION_HANDLED TRUE
# define G_DBUS_METHOD_INVOCATION_UNHANDLED FALSE
#endif
char *flatpak_get_timezone (void);