diff options
Diffstat (limited to 'src/include/gnunet_helper_lib.h')
-rw-r--r-- | src/include/gnunet_helper_lib.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h index b54120204..c329c4a33 100644 --- a/src/include/gnunet_helper_lib.h +++ b/src/include/gnunet_helper_lib.h | |||
@@ -19,6 +19,10 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup libgnunetutil | ||
23 | * Multi-function utilities library for GNUnet programs | ||
24 | * @{ | ||
25 | * | ||
22 | * @author Philipp Toelke | 26 | * @author Philipp Toelke |
23 | * @author Christian Grothoff | 27 | * @author Christian Grothoff |
24 | * | 28 | * |
@@ -34,10 +38,14 @@ | |||
34 | * @{ | 38 | * @{ |
35 | */ | 39 | */ |
36 | 40 | ||
41 | #if ! defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
42 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
43 | #endif | ||
44 | |||
37 | #ifndef GNUNET_HELPER_LIB_H | 45 | #ifndef GNUNET_HELPER_LIB_H |
38 | #define GNUNET_HELPER_LIB_H | 46 | #define GNUNET_HELPER_LIB_H |
39 | 47 | ||
40 | #include "gnunet_scheduler_lib.h" | 48 | |
41 | #include "gnunet_mst_lib.h" | 49 | #include "gnunet_mst_lib.h" |
42 | 50 | ||
43 | 51 | ||
@@ -91,8 +99,9 @@ GNUNET_HELPER_start (int with_control_pipe, | |||
91 | * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper | 99 | * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper |
92 | * @return #GNUNET_OK on success; #GNUNET_SYSERR on error | 100 | * @return #GNUNET_OK on success; #GNUNET_SYSERR on error |
93 | */ | 101 | */ |
94 | int | 102 | enum GNUNET_GenericReturnValue |
95 | GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); | 103 | GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, |
104 | int soft_kill); | ||
96 | 105 | ||
97 | 106 | ||
98 | /** | 107 | /** |
@@ -103,7 +112,7 @@ GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); | |||
103 | * @param h the helper handle | 112 | * @param h the helper handle |
104 | * @return #GNUNET_OK on success; #GNUNET_SYSERR on error | 113 | * @return #GNUNET_OK on success; #GNUNET_SYSERR on error |
105 | */ | 114 | */ |
106 | int | 115 | enum GNUNET_GenericReturnValue |
107 | GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h); | 116 | GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h); |
108 | 117 | ||
109 | 118 | ||
@@ -136,8 +145,10 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill); | |||
136 | * #GNUNET_NO if helper process died | 145 | * #GNUNET_NO if helper process died |
137 | * #GNUNET_SYSERR during GNUNET_HELPER_destroy | 146 | * #GNUNET_SYSERR during GNUNET_HELPER_destroy |
138 | */ | 147 | */ |
139 | typedef void (*GNUNET_HELPER_Continuation)(void *cls, | 148 | typedef void |
140 | int result); | 149 | (*GNUNET_HELPER_Continuation)( |
150 | void *cls, | ||
151 | enum GNUNET_GenericReturnValue result); | ||
141 | 152 | ||
142 | 153 | ||
143 | /** | 154 | /** |
@@ -181,3 +192,5 @@ GNUNET_HELPER_send_cancel (struct GNUNET_HELPER_SendHandle *sh); | |||
181 | /* end of include guard: GNUNET_HELPER_LIB_H */ | 192 | /* end of include guard: GNUNET_HELPER_LIB_H */ |
182 | 193 | ||
183 | /** @} */ /* end of group */ | 194 | /** @} */ /* end of group */ |
195 | |||
196 | /** @} */ /* end of group addition */ | ||