[libglnx/wip/smcv/easy-constants] backports: Backport G_DBUS_METHOD_INVOCATION_HANDLED, _UNHANDLED



commit ba51dc29f09c5faecb4e64235299f0ae885957c5
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]