[vala] linux: add DirEntType for the d_type extension of struct dirent
- From: Michael Lauer <mlauer src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] linux: add DirEntType for the d_type extension of struct dirent
- Date: Mon, 9 Nov 2009 21:02:45 +0000 (UTC)
commit f20fc85bf9049c0f3d4c3465b07e9e544159be24
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Mon Nov 9 21:54:00 2009 +0100
linux: add DirEntType for the d_type extension of struct dirent
vapi/linux.vapi | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index d935287..b3fc0eb 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -96,6 +96,19 @@ namespace Linux {
/*
* Misc non-posix additions
*/
+ [CCode (cheader_filename = "dirent.h")]
+ public enum DirEntType {
+ DT_UNKNOWN,
+ DT_FIFO,
+ DT_CHR,
+ DT_DIR,
+ DT_BLK,
+ DT_REG,
+ DT_LNK,
+ DT_SOCK,
+ DT_WHT
+ }
+
[CCode (cheader_filename = "arpa/inet.h")]
public int inet_aton(string cp, out Posix.InAddr addr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]