aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_helper_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-02 19:29:22 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-02 19:29:22 +0000
commit0834bf4d6fdf19ab410c01c02e65fcda8a5e5ebc (patch)
tree2410199dfb90c0ef4d12fc749f30f88e9bfda9b8 /src/include/gnunet_helper_lib.h
parentec9740ca2ca84525842e6743b45ceb9cb2a3ea95 (diff)
downloadgnunet-0834bf4d6fdf19ab410c01c02e65fcda8a5e5ebc.tar.gz
gnunet-0834bf4d6fdf19ab410c01c02e65fcda8a5e5ebc.zip
-implement microphone library
Diffstat (limited to 'src/include/gnunet_helper_lib.h')
-rw-r--r--src/include/gnunet_helper_lib.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h
index 06d65b360..281ee9ba6 100644
--- a/src/include/gnunet_helper_lib.h
+++ b/src/include/gnunet_helper_lib.h
@@ -77,21 +77,21 @@ GNUNET_HELPER_start (int with_control_pipe,
77 * reaped; call GNUNET_HELPER_wait() for reaping the dead helper process. 77 * reaped; call GNUNET_HELPER_wait() for reaping the dead helper process.
78 * 78 *
79 * @param h the helper handle 79 * @param h the helper handle
80 * @param soft_kill if GNUNET_YES, signals termination by closing the helper's 80 * @param soft_kill if #GNUNET_YES, signals termination by closing the helper's
81 * stdin; GNUNET_NO to signal termination by sending SIGTERM to helper 81 * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper
82 * @return GNUNET_OK on success; GNUNET_SYSERR on error 82 * @return #GNUNET_OK on success; #GNUNET_SYSERR on error
83 */ 83 */
84int 84int
85GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); 85GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill);
86 86
87 87
88/** 88/**
89 * Reap the helper process. This call is blocking(!). The helper process 89 * Reap the helper process. This call is blocking (!). The helper process
90 * should either be sent a termination signal before or should be dead before 90 * should either be sent a termination signal before or should be dead before
91 * calling this function 91 * calling this function
92 * 92 *
93 * @param h the helper handle 93 * @param h the helper handle
94 * @return GNUNET_OK on success; GNUNET_SYSERR on error 94 * @return #GNUNET_OK on success; #GNUNET_SYSERR on error
95 */ 95 */
96int 96int
97GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h); 97GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h);
@@ -111,8 +111,8 @@ GNUNET_HELPER_destroy (struct GNUNET_HELPER_Handle *h);
111 * helper process 111 * helper process
112 * 112 *
113 * @param h handle to helper to stop 113 * @param h handle to helper to stop
114 * @param soft_kill if GNUNET_YES, signals termination by closing the helper's 114 * @param soft_kill if #GNUNET_YES, signals termination by closing the helper's
115 * stdin; GNUNET_NO to signal termination by sending SIGTERM to helper 115 * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper
116 */ 116 */
117void 117void
118GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill); 118GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill);
@@ -122,9 +122,9 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill);
122 * Continuation function. 122 * Continuation function.
123 * 123 *
124 * @param cls closure 124 * @param cls closure
125 * @param result GNUNET_OK on success, 125 * @param result #GNUNET_OK on success,
126 * GNUNET_NO if helper process died 126 * #GNUNET_NO if helper process died
127 * GNUNET_SYSERR during GNUNET_HELPER_stop 127 * #GNUNET_SYSERR during GNUNET_HELPER_stop
128 */ 128 */
129typedef void (*GNUNET_HELPER_Continuation)(void *cls, 129typedef void (*GNUNET_HELPER_Continuation)(void *cls,
130 int result); 130 int result);
@@ -143,7 +143,7 @@ struct GNUNET_HELPER_SendHandle;
143 * @param msg message to send 143 * @param msg message to send
144 * @param can_drop can the message be dropped if there is already one in the queue? 144 * @param can_drop can the message be dropped if there is already one in the queue?
145 * @param cont continuation to run once the message is out 145 * @param cont continuation to run once the message is out
146 * @param cont_cls closure for 'cont' 146 * @param cont_cls closure for @a cont
147 * @return NULL if the message was dropped, 147 * @return NULL if the message was dropped,
148 * otherwise handle to cancel *cont* (actual transmission may 148 * otherwise handle to cancel *cont* (actual transmission may
149 * not be abortable) 149 * not be abortable)
@@ -157,13 +157,13 @@ GNUNET_HELPER_send (struct GNUNET_HELPER_Handle *h,
157 157
158 158
159/** 159/**
160 * Cancel a 'send' operation. If possible, transmitting the 160 * Cancel a #GNUNET_HELPER_send operation. If possible, transmitting
161 * message is also aborted, but at least 'cont' won't be 161 * the message is also aborted, but at least 'cont' won't be called.
162 * called.
163 * 162 *
164 * @param sh operation to cancel 163 * @param sh operation to cancel
165 */ 164 */
166void 165void
167GNUNET_HELPER_send_cancel (struct GNUNET_HELPER_SendHandle *sh); 166GNUNET_HELPER_send_cancel (struct GNUNET_HELPER_SendHandle *sh);
168 167
169#endif /* end of include guard: GNUNET_HELPER_LIB_H */ 168#endif
169/* end of include guard: GNUNET_HELPER_LIB_H */