[vala] glib-2.0: Add exit, abort, raise, and signal bindings.



commit 63703c79b4cda51b21ee1fe69e75e12961c64b53
Author: Luca Bruno <lethalman88 gmail com>
Date:   Fri Jul 30 10:57:06 2010 -0700

    glib-2.0: Add exit, abort, raise, and signal bindings.

 vapi/glib-2.0.vapi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index e22cebf..14a335c 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2558,6 +2558,8 @@ namespace GLib {
 	}
 
 	public delegate void SpawnChildSetupFunc ();
+	[CCode (has_target = false, cheader_filename = "signal.h")]
+	public delegate void SignalHandlerFunc (int signum);
 
 	[CCode (lower_case_cprefix = "g_")]
 	namespace Process {
@@ -2586,6 +2588,15 @@ namespace GLib {
 		public static ProcessSignal stop_sig (int status);
 		[CCode (cname = "WIFCONTINUED", cheader_filename = "sys/wait.h")]
 		public static bool if_continued (int status);
+
+		[CCode (cname = "abort", cheader_filename = "stdlib.h")]
+		public void abort ();
+		[CCode (cname = "exit", cheader_filename = "stdlib.h")]
+		public void exit (int status);
+		[CCode (cname = "raise", cheader_filename = "signal.h")]
+		public int raise (ProcessSignal sig);
+		[CCode (cname = "signal", cheader_filename = "signal.h")]
+		public SignalHandlerFunc @signal (ProcessSignal signum, SignalHandlerFunc handler);
 	}
 	
 	[CCode (cname = "int", has_type_id = false, cheader_filename = "signal.h", cprefix = "SIG")]



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