[vala/gdbus: 5/11] 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/gdbus: 5/11] D-Bus: Use type signature 'h' for file descriptor passing with GDBus
- Date: Fri, 22 Oct 2010 11:09:20 +0000 (UTC)
commit 104c7f0620f6fdf532ee3bf167a1cda6541d19b4
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]