]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Use type signature 'h' for file descriptor passing with GDBus
authorJürg Billeter <j@bitron.ch>
Mon, 18 Oct 2010 16:47:28 +0000 (18:47 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 23 Oct 2010 16:11:46 +0000 (18:11 +0200)
Support UnixInputStream, UnixOutputStream, and Socket.

codegen/valagvariantmodule.vala

index c8196e5a7eecad801bf074b99aef12f01924ae08..5efc2f6d1c596409809aa43372c3651dffbd1c19 100644 (file)
@@ -144,6 +144,13 @@ public class Vala.GVariantModule : GAsyncModule {
                                sig = sig.printf (element_sig);
                        }
 
+                       if (sig == null &&
+                           (datatype.data_type.get_full_name () == "GLib.UnixInputStream" ||
+                            datatype.data_type.get_full_name () == "GLib.UnixOutputStream" ||
+                            datatype.data_type.get_full_name () == "GLib.Socket")) {
+                               return "h";
+                       }
+
                        return sig;
                } else {
                        return null;