[libglnx/wip/smcv/easy-constants: 5/5] backports: Backport G_DBUS_METHOD_INVOCATION_HANDLED, _UNHANDLED
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libglnx/wip/smcv/easy-constants: 5/5] backports: Backport G_DBUS_METHOD_INVOCATION_HANDLED, _UNHANDLED
- Date: Fri, 19 Aug 2022 10:01:34 +0000 (UTC)
commit 29681b4b77f2706b10b7f8c1ab47f695dce21e21
Author: Simon McVittie <smcv collabora com>
Date: Wed Jul 27 16:19:36 2022 +0100
backports: Backport G_DBUS_METHOD_INVOCATION_HANDLED, _UNHANDLED
These are convenient for the same reasons as G_SOURCE_REMOVE and
G_SOURCE_CONTINUE.
Signed-off-by: Simon McVittie <smcv collabora com>
glnx-backports.h | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/glnx-backports.h b/glnx-backports.h
index fd769ef..6f766a3 100644
--- a/glnx-backports.h
+++ b/glnx-backports.h
@@ -72,6 +72,14 @@ gboolean glnx_set_object (GObject **object_ptr,
#define G_OPTION_FLAG_NONE ((GOptionFlags) 0)
#endif
+#ifndef G_DBUS_METHOD_INVOCATION_HANDLED /* added in 2.68 */
+#define G_DBUS_METHOD_INVOCATION_HANDLED TRUE
+#endif
+
+#ifndef G_DBUS_METHOD_INVOCATION_UNHANDLED /* added in 2.68 */
+#define G_DBUS_METHOD_INVOCATION_UNHANDLED FALSE
+#endif
+
#if !GLIB_CHECK_VERSION(2, 70, 0)
#define G_OPTION_ENTRY_NULL { NULL, 0, 0, 0, NULL, NULL, NULL }
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]