[vala] D-Bus: Support fd passing with GFileDescriptorBased
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Support fd passing with GFileDescriptorBased
- Date: Thu, 2 Aug 2012 08:52:14 +0000 (UTC)
commit 3c6341be64bded0c7c8d40395dc65181a4da8527
Author: Mikkel Kamstrup Erlandsen <mikkel kamstrup canonical com>
Date: Thu Oct 27 01:50:35 2011 +0200
D-Bus: Support fd passing with GFileDescriptorBased
Fixes bug 662815.
codegen/valagdbusmodule.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagdbusmodule.vala b/codegen/valagdbusmodule.vala
index 262e7c0..acbde07 100644
--- a/codegen/valagdbusmodule.vala
+++ b/codegen/valagdbusmodule.vala
@@ -102,7 +102,8 @@ public class Vala.GDBusModule : GVariantModule {
if (type is ObjectType) {
if (type.data_type.get_full_name () == "GLib.UnixInputStream" ||
type.data_type.get_full_name () == "GLib.UnixOutputStream" ||
- type.data_type.get_full_name () == "GLib.Socket") {
+ type.data_type.get_full_name () == "GLib.Socket" ||
+ type.data_type.get_full_name () == "GLib.FileDescriptorBased") {
return true;
}
}
@@ -138,6 +139,10 @@ public class Vala.GDBusModule : GVariantModule {
var result = new CCodeFunctionCall (new CCodeIdentifier ("g_socket_get_fd"));
result.add_argument (expr);
return result;
+ } else if (type.data_type.get_full_name () == "GLib.FileDescriptorBased") {
+ var result = new CCodeFunctionCall (new CCodeIdentifier ("g_file_descriptor_based_get_fd"));
+ result.add_argument (expr);
+ return result;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]