[vala] linux: Fix InotifyFlags and InotifyMaskFlags bindings



commit ba99b738ab850208ff97b29ebdd60396f7c2f3f2
Author: Duncan Mac-Vicar P <duncan kde org>
Date:   Sat May 14 12:27:28 2011 +0200

    linux: Fix InotifyFlags and InotifyMaskFlags bindings
    
    Fixes bug 650165.

 vapi/linux.vapi |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 0753f6d..ed795de 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -870,13 +870,14 @@ namespace Linux {
         public string name;
     }
 
-    [CCode (cprefix = "IN_", has_type_id = false, cheader_filename = "sys/inotify.h")]
+    [Flags, CCode (cname = "int", cprefix = "IN_", has_type_id = false, cheader_filename = "sys/inotify.h")]
+
     public enum InotifyFlags {
         CLOEXEC,
         NONBLOCK
     }
 
-    [CCode (cname = "int", cprefix = "IN_", has_type_id = false, cheader_filename = "sys/inotify.h")]
+    [Flags, CCode (cname = "int", cprefix = "IN_", has_type_id = false, cheader_filename = "sys/inotify.h")]
     public enum InotifyMaskFlags {
         ACCESS,
         ATTRIB,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]