Function
GLibunix_signal_add_full
since: 2.30
Declaration
guint
g_unix_signal_add_full (
gint priority,
gint signum,
GSourceFunc handler,
gpointer user_data,
GDestroyNotify notify
)
Description
A convenience function for g_unix_signal_source_new(), which
attaches to the default GMainContext. You can remove the watch
using g_source_remove().
Available since: 2.30
This method is renamed to g_unix_signal_add() in language bindings
Parameters
priority-
Type:
gintThe priority of the signal source. Typically this will be in the range between
G_PRIORITY_DEFAULTandG_PRIORITY_HIGH. signum-
Type:
gintSignal number.
handler-
Type:
GSourceFuncCallback.
user_data-
Type:
gpointerData for
handler.The argument can be NULL.The data is owned by the caller of the function. notify-
Type:
GDestroyNotifyGDestroyNotifyforhandler.