[vala] D-Bus: Use type signature 'h' for file descriptor passing with	GDBus
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vala] D-Bus: Use type signature 'h' for file descriptor passing with	GDBus
- Date: Sat, 23 Oct 2010 19:22:45 +0000 (UTC)
commit 12b44a8b138a3d5d4e9d179fc4e9229cebb8c1e7
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 18 18:47:28 2010 +0200
    D-Bus: Use type signature 'h' for file descriptor passing with GDBus
    
    Support UnixInputStream, UnixOutputStream, and Socket.
 codegen/valagvariantmodule.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagvariantmodule.vala b/codegen/valagvariantmodule.vala
index c8196e5..5efc2f6 100644
--- a/codegen/valagvariantmodule.vala
+++ b/codegen/valagvariantmodule.vala
@@ -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;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]