aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_client_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-21 15:16:58 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-21 15:16:58 +0000
commit5a38c8f0d1826ea964e3e3452e1a3a2a24d7d35b (patch)
tree7ba261fc1882bcfa6dc0da916272a0ed0d17468e /src/include/gnunet_client_lib.h
parent1fca0c918c8468ba16666e8a1c41526cacdc6df2 (diff)
downloadgnunet-5a38c8f0d1826ea964e3e3452e1a3a2a24d7d35b.tar.gz
gnunet-5a38c8f0d1826ea964e3e3452e1a3a2a24d7d35b.zip
-misc doxygen fixes
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r--src/include/gnunet_client_lib.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h
index a2a7bd542..d6eaca56a 100644
--- a/src/include/gnunet_client_lib.h
+++ b/src/include/gnunet_client_lib.h
@@ -22,6 +22,8 @@
22 * @file include/gnunet_client_lib.h 22 * @file include/gnunet_client_lib.h
23 * @brief functions related to accessing services 23 * @brief functions related to accessing services
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * @defgroup client Generic client-side communication with services
26 * @{
25 */ 27 */
26 28
27#ifndef GNUNET_CLIENT_LIB_H 29#ifndef GNUNET_CLIENT_LIB_H
@@ -92,7 +94,7 @@ typedef void (*GNUNET_CLIENT_MessageHandler) (void *cls,
92 * 94 *
93 * @param client connection to the service 95 * @param client connection to the service
94 * @param handler function to call with the message 96 * @param handler function to call with the message
95 * @param handler_cls closure for handler 97 * @param handler_cls closure for @a handler
96 * @param timeout how long to wait until timing out 98 * @param timeout how long to wait until timing out
97 */ 99 */
98void 100void
@@ -115,17 +117,17 @@ struct GNUNET_CLIENT_TransmitHandle;
115 * @param client connection to the service 117 * @param client connection to the service
116 * @param size number of bytes to send 118 * @param size number of bytes to send
117 * @param timeout after how long should we give up (and call 119 * @param timeout after how long should we give up (and call
118 * notify with buf NULL and size 0)? 120 * @a notify with buf NULL and size 0)?
119 * @param auto_retry if the connection to the service dies, should we 121 * @param auto_retry if the connection to the service dies, should we
120 * automatically re-connect and retry (within the timeout period) 122 * automatically re-connect and retry (within the timeout period)
121 * or should we immediately fail in this case? Pass GNUNET_YES 123 * or should we immediately fail in this case? Pass #GNUNET_YES
122 * if the caller does not care about temporary connection errors, 124 * if the caller does not care about temporary connection errors,
123 * for example because the protocol is stateless 125 * for example because the protocol is stateless
124 * @param notify function to call 126 * @param notify function to call
125 * @param notify_cls closure for notify 127 * @param notify_cls closure for @a notify
126 * @return NULL if someone else is already waiting to be notified 128 * @return NULL if someone else is already waiting to be notified
127 * non-NULL if the notify callback was queued (can be used to cancel 129 * non-NULL if the notify callback was queued (can be used to cancel
128 * using GNUNET_CONNECTION_notify_transmit_ready_cancel) 130 * using #GNUNET_CONNECTION_notify_transmit_ready_cancel)
129 */ 131 */
130struct GNUNET_CLIENT_TransmitHandle * 132struct GNUNET_CLIENT_TransmitHandle *
131GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *client, 133GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *client,
@@ -159,12 +161,12 @@ GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle
159 * and for waiting for a response) 161 * and for waiting for a response)
160 * @param auto_retry if the connection to the service dies, should we 162 * @param auto_retry if the connection to the service dies, should we
161 * automatically re-connect and retry (within the timeout period) 163 * automatically re-connect and retry (within the timeout period)
162 * or should we immediately fail in this case? Pass GNUNET_YES 164 * or should we immediately fail in this case? Pass #GNUNET_YES
163 * if the caller does not care about temporary connection errors, 165 * if the caller does not care about temporary connection errors,
164 * for example because the protocol is stateless 166 * for example because the protocol is stateless
165 * @param rn function to call with the response 167 * @param rn function to call with the response
166 * @param rn_cls closure for rn 168 * @param rn_cls closure for @a rn
167 * @return GNUNET_OK on success, GNUNET_SYSERR if a request 169 * @return #GNUNET_OK on success, #GNUNET_SYSERR if a request
168 * is already pending 170 * is already pending
169 */ 171 */
170int 172int
@@ -185,9 +187,9 @@ struct GNUNET_CLIENT_TestHandle;
185 * Function called with the result on the service test. 187 * Function called with the result on the service test.
186 * 188 *
187 * @param cls closure 189 * @param cls closure
188 * @param result GNUNET_YES if the service is running, 190 * @param result #GNUNET_YES if the service is running,
189 * GNUNET_NO if the service is not running 191 * #GNUNET_NO if the service is not running
190 * GNUNET_SYSERR if the configuration is invalid 192 * #GNUNET_SYSERR if the configuration is invalid
191 */ 193 */
192typedef void (*GNUNET_CLIENT_TestResultCallback)(void *cls, 194typedef void (*GNUNET_CLIENT_TestResultCallback)(void *cls,
193 int result); 195 int result);
@@ -201,9 +203,9 @@ typedef void (*GNUNET_CLIENT_TestResultCallback)(void *cls,
201 * 203 *
202 * @param service name of the service to wait for 204 * @param service name of the service to wait for
203 * @param cfg configuration to use 205 * @param cfg configuration to use
204 * @param timeout how long to wait at most in ms 206 * @param timeout how long to wait at most
205 * @param cb function to call with the result 207 * @param cb function to call with the result
206 * @param cb_cls closure for 'cb' 208 * @param cb_cls closure for @a cb
207 * @return handle to cancel the test 209 * @return handle to cancel the test
208 */ 210 */
209struct GNUNET_CLIENT_TestHandle * 211struct GNUNET_CLIENT_TestHandle *
@@ -229,6 +231,8 @@ GNUNET_CLIENT_service_test_cancel (struct GNUNET_CLIENT_TestHandle *th);
229} 231}
230#endif 232#endif
231 233
234/** @} */ /* end of group client */
235
232/* ifndef GNUNET_CLIENT_LIB_H */ 236/* ifndef GNUNET_CLIENT_LIB_H */
233#endif 237#endif
234/* end of gnunet_client_lib.h */ 238/* end of gnunet_client_lib.h */