mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
More gdbus-codegen fixed to build on non-Unix
https://bugzilla.gnome.org/show_bug.cgi?id=655148#c6 Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -1974,10 +1974,14 @@ class CodeGenerator:
|
||||
' g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);\n'
|
||||
' g_value_set_object (¶mv[n++], invocation);\n'
|
||||
' if (info->pass_fdlist)\n'
|
||||
' {\n'
|
||||
' g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);\n'
|
||||
' g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));\n'
|
||||
' }\n'
|
||||
' {\n'
|
||||
'#ifdef G_OS_UNIX\n'
|
||||
' g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);\n'
|
||||
' g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));\n'
|
||||
'#else\n'
|
||||
' g_assert_not_reached ();\n'
|
||||
'#endif\n'
|
||||
' }\n'
|
||||
%(i.ns_upper, i.name_upper))
|
||||
self.c.write(' g_variant_iter_init (&iter, parameters);\n'
|
||||
' while ((child = g_variant_iter_next_value (&iter)) != NULL)\n'
|
||||
|
Reference in New Issue
Block a user