aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_signal_lib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/gnunet_signal_lib.h b/src/include/gnunet_signal_lib.h
index 77a02f04a..9cb032b3b 100644
--- a/src/include/gnunet_signal_lib.h
+++ b/src/include/gnunet_signal_lib.h
@@ -41,6 +41,7 @@ extern "C"
41 */ 41 */
42struct GNUNET_SIGNAL_Context; 42struct GNUNET_SIGNAL_Context;
43 43
44
44/** 45/**
45 * A signal handler. Since different OSes have different signatures 46 * A signal handler. Since different OSes have different signatures
46 * for their handlers, the API only gives the most restrictive 47 * for their handlers, the API only gives the most restrictive
@@ -49,7 +50,9 @@ struct GNUNET_SIGNAL_Context;
49 * the implementation must guarantee that this handler is not called 50 * the implementation must guarantee that this handler is not called
50 * for signals other than the one that it has been registered for. 51 * for signals other than the one that it has been registered for.
51 */ 52 */
52typedef void (*GNUNET_SIGNAL_Handler) (void); 53typedef void
54(*GNUNET_SIGNAL_Handler) (void);
55
53 56
54/** 57/**
55 * Install a signal handler that will be run if the 58 * Install a signal handler that will be run if the
@@ -60,7 +63,9 @@ typedef void (*GNUNET_SIGNAL_Handler) (void);
60 * @return context that can be used to restore, NULL on error 63 * @return context that can be used to restore, NULL on error
61 */ 64 */
62struct GNUNET_SIGNAL_Context * 65struct GNUNET_SIGNAL_Context *
63GNUNET_SIGNAL_handler_install (int signal, GNUNET_SIGNAL_Handler handler); 66GNUNET_SIGNAL_handler_install (int signal,
67 GNUNET_SIGNAL_Handler handler);
68
64 69
65/** 70/**
66 * Uninstall a previously installed signal hander. 71 * Uninstall a previously installed signal hander.