[gnome-dvb-daemon] Removed custom bindings of signal.h



commit c24484b07808c4beb7306a686ad9639da165a7e0
Author: Sebastian PÃlsterl <sebp k-d-w org>
Date:   Sat Mar 17 15:38:54 2012 +0100

    Removed custom bindings of signal.h

 src/Main.vala    |    4 ++--
 vapi/cutils.vapi |   22 ----------------------
 2 files changed, 2 insertions(+), 24 deletions(-)
---
diff --git a/src/Main.vala b/src/Main.vala
index 518af31..aeedda9 100644
--- a/src/Main.vala
+++ b/src/Main.vala
@@ -187,8 +187,8 @@ namespace Main {
         // set timezone to avoid that strftime stats /etc/localtime on every call
         Environment.set_variable ("TZ", "/etc/localtime", false);
 
-        cUtils.Signal.connect (cUtils.Signal.SIGINT, on_exit);
-        cUtils.Signal.connect (cUtils.Signal.SIGTERM, on_exit);
+        Process.signal(ProcessSignal.INT, on_exit);
+        Process.signal(ProcessSignal.TERM, on_exit);
 
         OptionContext context = new OptionContext ("- record and watch TV shows using one or more DVB adapters");
         context.add_main_entries (options, null);
diff --git a/vapi/cutils.vapi b/vapi/cutils.vapi
index aedf182..2d69d2d 100644
--- a/vapi/cutils.vapi
+++ b/vapi/cutils.vapi
@@ -3,28 +3,6 @@ namespace cUtils {
 
     [CCode (cname = "timegm", cheader_filename="time.h")]
     public static time_t timegm (GLib.Time tm);
-    
-    [CCode (cheader_filename = "signal.h")]
-    namespace Signal {
-        [CCode (cname = "SIGINT")]
-        public static const int SIGINT;
-        [CCode (cname = "SIGHILL")]
-        public static const int SIGHILL;
-        [CCode (cname = "SIGABRT")]
-        public static const int SIGABRT;
-        [CCode (cname = "SIGFPE")]
-        public static const int SIGFPE;
-        [CCode (cname = "SIGSEGV")]
-        public static const int SIGSEGV;
-        [CCode (cname = "SIGTERM")]
-        public static const int SIGTERM;
-        
-        [CCode (has_target = false)]
-        public delegate void SignalHandler (int signum);
-        
-        [CCode (cname="signal")]
-        public static SignalHandler connect (int signum, SignalHandler handler);
-    }
 
     [CCode (cname = "gst_bus_add_watch_context", cheader_filename = "cstuff.h")]
     public static uint gst_bus_add_watch_context (Gst.Bus bus, Gst.BusFunc func, GLib.MainContext context);



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