unix signal watch: make API match other sources

Change the unix signal watch API to match other sources in both
available functions, names of those functions and order of the
parameters to the _full function.

https://bugzilla.gnome.org/show_bug.cgi?id=657705
This commit is contained in:
Ryan Lortie
2011-08-30 09:45:52 -04:00
parent 1292ffc780
commit c0eb77bfc8
5 changed files with 45 additions and 25 deletions

View File

@@ -65,12 +65,16 @@ gboolean g_unix_set_fd_nonblocking (gint fd,
gboolean nonblock,
GError **error);
GSource *g_unix_signal_source_new (gint signum);
GSource *g_unix_signal_source_new (gint signum);
guint g_unix_signal_add_watch_full (gint signum,
gint priority,
GSourceFunc handler,
gpointer user_data,
GDestroyNotify notify);
guint g_unix_signal_add_full (gint priority,
gint signum,
GSourceFunc handler,
gpointer user_data,
GDestroyNotify notify);
guint g_unix_signal_add (gint signum,
GSourceFunc handler,
gpointer user_data);
#endif