Added the IntegerType descriptor. Can we apply the attached patch then?

Cheers,
-- 
:M:
>From 64dba8143862518d7979af4dacdc4258c9cdc3a6 Mon Sep 17 00:00:00 2001
From: Hans Baier <hansfba...@googlemail.com>
Date: Fri, 6 Mar 2009 01:38:41 +0100
Subject: [PATCH] posix.vapi: add pid_t and kill

Signed-off-by: Hans Baier <hansfba...@googlemail.com>
---
 vapi/posix.vapi |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 3418038..5c87f00 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -355,6 +355,14 @@ namespace Posix {
 	[CCode (cheader_filename = "signal.h")]
 	public const int SIGSTKFLT;
 
+	[SimpleType]
+	[IntegerType (rank = 6)]
+	[CCode (cname = "pid_t", default_value = "0", cheader_filename = "sys/types.h")]
+	public struct pid_t {
+	}
+	[CCode (cheader_filename = "signal.h")]
+	public int kill (pid_t pid, int signum);
+
 	public static delegate void sighandler_t (int signal);
 
 	[CCode (cheader_filename = "signal.h")]
-- 
1.5.6.3

_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to