diff options
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r-- | src/include/gnunet_client_lib.h | 51 |
1 files changed, 29 insertions, 22 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h index 343960426..3fad01222 100644 --- a/src/include/gnunet_client_lib.h +++ b/src/include/gnunet_client_lib.h | |||
@@ -66,9 +66,8 @@ struct GNUNET_CLIENT_Connection *GNUNET_CLIENT_connect (const char | |||
66 | * @param h client handle | 66 | * @param h client handle |
67 | * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default | 67 | * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default |
68 | */ | 68 | */ |
69 | void | 69 | void GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, |
70 | GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, | 70 | int do_ignore); |
71 | int do_ignore); | ||
72 | 71 | ||
73 | 72 | ||
74 | 73 | ||
@@ -98,8 +97,8 @@ void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock, | |||
98 | * @param msg message received, NULL on timeout or fatal error | 97 | * @param msg message received, NULL on timeout or fatal error |
99 | */ | 98 | */ |
100 | typedef void (*GNUNET_CLIENT_MessageHandler) (void *cls, | 99 | typedef void (*GNUNET_CLIENT_MessageHandler) (void *cls, |
101 | const struct | 100 | const struct GNUNET_MessageHeader |
102 | GNUNET_MessageHeader * msg); | 101 | * msg); |
103 | 102 | ||
104 | /** | 103 | /** |
105 | * Type of a function to call when we have finished shutting | 104 | * Type of a function to call when we have finished shutting |
@@ -153,13 +152,20 @@ struct GNUNET_CLIENT_TransmitHandle; | |||
153 | * non-NULL if the notify callback was queued (can be used to cancel | 152 | * non-NULL if the notify callback was queued (can be used to cancel |
154 | * using GNUNET_CONNECTION_notify_transmit_ready_cancel) | 153 | * using GNUNET_CONNECTION_notify_transmit_ready_cancel) |
155 | */ | 154 | */ |
156 | struct GNUNET_CLIENT_TransmitHandle | 155 | struct GNUNET_CLIENT_TransmitHandle *GNUNET_CLIENT_notify_transmit_ready (struct |
157 | *GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock, | 156 | GNUNET_CLIENT_Connection |
158 | size_t size, | 157 | *sock, |
159 | struct GNUNET_TIME_Relative timeout, | 158 | size_t |
160 | int auto_retry, | 159 | size, |
161 | GNUNET_CONNECTION_TransmitReadyNotify | 160 | struct |
162 | notify, void *notify_cls); | 161 | GNUNET_TIME_Relative |
162 | timeout, | ||
163 | int | ||
164 | auto_retry, | ||
165 | GNUNET_CONNECTION_TransmitReadyNotify | ||
166 | notify, | ||
167 | void | ||
168 | *notify_cls); | ||
163 | 169 | ||
164 | 170 | ||
165 | /** | 171 | /** |
@@ -167,9 +173,9 @@ struct GNUNET_CLIENT_TransmitHandle | |||
167 | * | 173 | * |
168 | * @param th handle from the original request. | 174 | * @param th handle from the original request. |
169 | */ | 175 | */ |
170 | void | 176 | void GNUNET_CLIENT_notify_transmit_ready_cancel (struct |
171 | GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle | 177 | GNUNET_CLIENT_TransmitHandle |
172 | *th); | 178 | *th); |
173 | 179 | ||
174 | 180 | ||
175 | /** | 181 | /** |
@@ -193,13 +199,14 @@ GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle | |||
193 | * @return GNUNET_OK on success, GNUNET_SYSERR if a request | 199 | * @return GNUNET_OK on success, GNUNET_SYSERR if a request |
194 | * is already pending | 200 | * is already pending |
195 | */ | 201 | */ |
196 | int | 202 | int GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection |
197 | GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection *sock, | 203 | *sock, |
198 | const struct GNUNET_MessageHeader *hdr, | 204 | const struct GNUNET_MessageHeader |
199 | struct GNUNET_TIME_Relative timeout, | 205 | *hdr, |
200 | int auto_retry, | 206 | struct GNUNET_TIME_Relative |
201 | GNUNET_CLIENT_MessageHandler rn, | 207 | timeout, int auto_retry, |
202 | void *rn_cls); | 208 | GNUNET_CLIENT_MessageHandler rn, |
209 | void *rn_cls); | ||
203 | 210 | ||
204 | 211 | ||
205 | /** | 212 | /** |