aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_client_lib.h
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-05-06 09:55:53 +0000
committerNathan S. Evans <evans@in.tum.de>2010-05-06 09:55:53 +0000
commit998cb5efab59bfc5cdf9b324273b367fa8278c0b (patch)
tree1f8770e93fc6f2c1c08796d20867993937f63327 /src/include/gnunet_client_lib.h
parent1948cedcb5e7c5017dcd18ef087f0f7e5aa5f27f (diff)
downloadgnunet-998cb5efab59bfc5cdf9b324273b367fa8278c0b.tar.gz
gnunet-998cb5efab59bfc5cdf9b324273b367fa8278c0b.zip
changes required for arm fix
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r--src/include/gnunet_client_lib.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h
index 21487eb04..56f6915a4 100644
--- a/src/include/gnunet_client_lib.h
+++ b/src/include/gnunet_client_lib.h
@@ -106,6 +106,19 @@ typedef void (*GNUNET_CLIENT_MessageHandler) (void *cls,
106 GNUNET_MessageHeader * msg); 106 GNUNET_MessageHeader * msg);
107 107
108/** 108/**
109 * Type of a function to call when we have finished shutting
110 * down a service, or failed.
111 *
112 * @param cls closure
113 * @param reason what is the result of the shutdown
114 * GNUNET_NO on shutdown (not running)
115 * GNUNET_YES on running
116 * GNUNET_SYSERR on failure to transmit message
117 */
118typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls,
119 int reason);
120
121/**
109 * Read from the service. 122 * Read from the service.
110 * 123 *
111 * @param sock the service 124 * @param sock the service
@@ -202,9 +215,19 @@ GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection *sock,
202 * be used by the caller after this call 215 * be used by the caller after this call
203 * (calling this function frees "sock" after a while). 216 * (calling this function frees "sock" after a while).
204 * 217 *
218 * @param sched the scheduler to use for calling shutdown continuation
205 * @param sock the socket connected to the service 219 * @param sock the socket connected to the service
220 * @param timeout how long to wait before giving up on transmission
221 * @param cont continuation to call once the service is really down
222 * @param cont_cls closure for continuation
223 *
206 */ 224 */
207void GNUNET_CLIENT_service_shutdown (struct GNUNET_CLIENT_Connection *sock); 225void
226GNUNET_CLIENT_service_shutdown (struct GNUNET_SCHEDULER_Handle *sched,
227 struct GNUNET_CLIENT_Connection *sock,
228 struct GNUNET_TIME_Relative timeout,
229 GNUNET_CLIENT_ShutdownTask cont,
230 void *cont_cls);
208 231
209 232
210/** 233/**