[Vala] [PATCH] Fuse Bindings
- From: tecywiz121 <tecywiz121 hotmail com>
- To: vala-devel-list gnome org
- Subject: [Vala] [PATCH] Fuse Bindings
- Date: Fri, 29 Oct 2010 14:11:53 -0400
Hey,
Here's a small patch for the fuse bindings. The context struct was
changed to a compact class and the unowned keyword was added to the
get_context method.
Sam
>From 1af8437bafa4819c23a311de798f50fd26fac825 Mon Sep 17 00:00:00 2001
From: Sam Wilson <tecywiz121 hotmail com>
Date: Fri, 29 Oct 2010 14:05:59 -0400
Subject: [PATCH] Fixed up the fuse bindings
---
vapi/fuse.vapi | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/vapi/fuse.vapi b/vapi/fuse.vapi
index 710e8e9..91c45fb 100644
--- a/vapi/fuse.vapi
+++ b/vapi/fuse.vapi
@@ -40,12 +40,13 @@ namespace Fuse {
}
[CCode (cname = "struct fuse_context")]
- public struct Context {
- Fuse fuse;
- Posix.uid_t uid;
- Posix.gid_t gid;
- /*Posix.pid_t pid;*/
- void *private_data;
+ [Compact]
+ public class Context {
+ public Fuse fuse;
+ public Posix.uid_t uid;
+ public Posix.gid_t gid;
+ /*public Posix.pid_t pid;*/
+ public void *private_data;
}
[CCode (cname = "fuse_fill_dir_t", has_target = false)]
@@ -136,5 +137,5 @@ namespace Fuse {
}
public int main ([CCode (array_length_pos = 0.9)] string[] args, Operations oper, void *user_data);
- public Context get_context ();
+ public unowned Context get_context ();
}
--
1.7.0.4
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]