diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
commit | 502af2167f7c218366666ca4944bd7cc54b5b19a (patch) | |
tree | a91fec5cc9769d260640bd91c6633cb9cf395524 /src/include/gnunet_client_lib.h | |
parent | 03af5a603b7cc53432249d5854cd412aa90dde0d (diff) | |
download | gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip |
indentation
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r-- | src/include/gnunet_client_lib.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h index 41dbe4efc..343960426 100644 --- a/src/include/gnunet_client_lib.h +++ b/src/include/gnunet_client_lib.h | |||
@@ -68,7 +68,7 @@ struct GNUNET_CLIENT_Connection *GNUNET_CLIENT_connect (const char | |||
68 | */ | 68 | */ |
69 | void | 69 | void |
70 | GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, | 70 | GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, |
71 | int do_ignore); | 71 | int do_ignore); |
72 | 72 | ||
73 | 73 | ||
74 | 74 | ||
@@ -88,7 +88,7 @@ GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, | |||
88 | * handle be completed? | 88 | * handle be completed? |
89 | */ | 89 | */ |
90 | void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock, | 90 | void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock, |
91 | int finish_pending_write); | 91 | int finish_pending_write); |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * Type of a function to call when we receive a message | 94 | * Type of a function to call when we receive a message |
@@ -111,8 +111,7 @@ typedef void (*GNUNET_CLIENT_MessageHandler) (void *cls, | |||
111 | * GNUNET_YES on running | 111 | * GNUNET_YES on running |
112 | * GNUNET_SYSERR on failure to transmit message | 112 | * GNUNET_SYSERR on failure to transmit message |
113 | */ | 113 | */ |
114 | typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls, | 114 | typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls, int reason); |
115 | int reason); | ||
116 | 115 | ||
117 | /** | 116 | /** |
118 | * Read from the service. | 117 | * Read from the service. |
@@ -125,7 +124,7 @@ typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls, | |||
125 | void GNUNET_CLIENT_receive (struct GNUNET_CLIENT_Connection *sock, | 124 | void GNUNET_CLIENT_receive (struct GNUNET_CLIENT_Connection *sock, |
126 | GNUNET_CLIENT_MessageHandler handler, | 125 | GNUNET_CLIENT_MessageHandler handler, |
127 | void *handler_cls, | 126 | void *handler_cls, |
128 | struct GNUNET_TIME_Relative timeout); | 127 | struct GNUNET_TIME_Relative timeout); |
129 | 128 | ||
130 | 129 | ||
131 | /** | 130 | /** |
@@ -155,13 +154,12 @@ struct GNUNET_CLIENT_TransmitHandle; | |||
155 | * using GNUNET_CONNECTION_notify_transmit_ready_cancel) | 154 | * using GNUNET_CONNECTION_notify_transmit_ready_cancel) |
156 | */ | 155 | */ |
157 | struct GNUNET_CLIENT_TransmitHandle | 156 | struct GNUNET_CLIENT_TransmitHandle |
158 | *GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock, | 157 | *GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock, |
159 | size_t size, | 158 | size_t size, |
160 | struct GNUNET_TIME_Relative timeout, | 159 | struct GNUNET_TIME_Relative timeout, |
161 | int auto_retry, | 160 | int auto_retry, |
162 | GNUNET_CONNECTION_TransmitReadyNotify | 161 | GNUNET_CONNECTION_TransmitReadyNotify |
163 | notify, | 162 | notify, void *notify_cls); |
164 | void *notify_cls); | ||
165 | 163 | ||
166 | 164 | ||
167 | /** | 165 | /** |
@@ -170,7 +168,8 @@ struct GNUNET_CLIENT_TransmitHandle | |||
170 | * @param th handle from the original request. | 168 | * @param th handle from the original request. |
171 | */ | 169 | */ |
172 | void | 170 | void |
173 | GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle *th); | 171 | GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle |
172 | *th); | ||
174 | 173 | ||
175 | 174 | ||
176 | /** | 175 | /** |
@@ -196,11 +195,11 @@ GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle | |||
196 | */ | 195 | */ |
197 | int | 196 | int |
198 | GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection *sock, | 197 | GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection *sock, |
199 | const struct GNUNET_MessageHeader *hdr, | 198 | const struct GNUNET_MessageHeader *hdr, |
200 | struct GNUNET_TIME_Relative timeout, | 199 | struct GNUNET_TIME_Relative timeout, |
201 | int auto_retry, | 200 | int auto_retry, |
202 | GNUNET_CLIENT_MessageHandler rn, | 201 | GNUNET_CLIENT_MessageHandler rn, |
203 | void *rn_cls); | 202 | void *rn_cls); |
204 | 203 | ||
205 | 204 | ||
206 | /** | 205 | /** |