diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_core_service.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/include/gnunet_core_service.h')
-rw-r--r-- | src/include/gnunet_core_service.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 4e6c48ee8..66b292c3c 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -125,12 +125,12 @@ typedef void (*GNUNET_CORE_StartupCallback) ( | |||
125 | * NULL on error (in this case, init is never called) | 125 | * NULL on error (in this case, init is never called) |
126 | */ | 126 | */ |
127 | struct GNUNET_CORE_Handle * | 127 | struct GNUNET_CORE_Handle * |
128 | GNUNET_CORE_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | 128 | GNUNET_CORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, |
129 | void *cls, | 129 | void *cls, |
130 | GNUNET_CORE_StartupCallback init, | 130 | GNUNET_CORE_StartupCallback init, |
131 | GNUNET_CORE_ConnectEventHandler connects, | 131 | GNUNET_CORE_ConnectEventHandler connects, |
132 | GNUNET_CORE_DisconnectEventHandler disconnects, | 132 | GNUNET_CORE_DisconnectEventHandler disconnects, |
133 | const struct GNUNET_MQ_MessageHandler *handlers); | 133 | const struct GNUNET_MQ_MessageHandler *handlers); |
134 | 134 | ||
135 | 135 | ||
136 | /** | 136 | /** |
@@ -139,7 +139,7 @@ GNUNET_CORE_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
139 | * @param handle connection to core to disconnect | 139 | * @param handle connection to core to disconnect |
140 | */ | 140 | */ |
141 | void | 141 | void |
142 | GNUNET_CORE_disconnect(struct GNUNET_CORE_Handle *handle); | 142 | GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle); |
143 | 143 | ||
144 | 144 | ||
145 | /** | 145 | /** |
@@ -150,8 +150,8 @@ GNUNET_CORE_disconnect(struct GNUNET_CORE_Handle *handle); | |||
150 | * @return NULL if @a pid is not connected | 150 | * @return NULL if @a pid is not connected |
151 | */ | 151 | */ |
152 | struct GNUNET_MQ_Handle * | 152 | struct GNUNET_MQ_Handle * |
153 | GNUNET_CORE_get_mq(const struct GNUNET_CORE_Handle *h, | 153 | GNUNET_CORE_get_mq (const struct GNUNET_CORE_Handle *h, |
154 | const struct GNUNET_PeerIdentity *pid); | 154 | const struct GNUNET_PeerIdentity *pid); |
155 | 155 | ||
156 | 156 | ||
157 | /** | 157 | /** |
@@ -173,7 +173,8 @@ struct GNUNET_CORE_MonitorHandle; | |||
173 | * #GNUNET_CORE_KX_STATE_REKEY_SENT until the rekey operation is | 173 | * #GNUNET_CORE_KX_STATE_REKEY_SENT until the rekey operation is |
174 | * confirmed by a PONG from the other peer. | 174 | * confirmed by a PONG from the other peer. |
175 | */ | 175 | */ |
176 | enum GNUNET_CORE_KxState { | 176 | enum GNUNET_CORE_KxState |
177 | { | ||
177 | /** | 178 | /** |
178 | * No handshake yet. | 179 | * No handshake yet. |
179 | */ | 180 | */ |
@@ -263,9 +264,9 @@ typedef void (*GNUNET_CORE_MonitorCallback) ( | |||
263 | * @return NULL on error | 264 | * @return NULL on error |
264 | */ | 265 | */ |
265 | struct GNUNET_CORE_MonitorHandle * | 266 | struct GNUNET_CORE_MonitorHandle * |
266 | GNUNET_CORE_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, | 267 | GNUNET_CORE_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, |
267 | GNUNET_CORE_MonitorCallback peer_cb, | 268 | GNUNET_CORE_MonitorCallback peer_cb, |
268 | void *peer_cb_cls); | 269 | void *peer_cb_cls); |
269 | 270 | ||
270 | 271 | ||
271 | /** | 272 | /** |
@@ -274,7 +275,7 @@ GNUNET_CORE_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
274 | * @param mh monitor to stop | 275 | * @param mh monitor to stop |
275 | */ | 276 | */ |
276 | void | 277 | void |
277 | GNUNET_CORE_monitor_stop(struct GNUNET_CORE_MonitorHandle *mh); | 278 | GNUNET_CORE_monitor_stop (struct GNUNET_CORE_MonitorHandle *mh); |
278 | 279 | ||
279 | 280 | ||
280 | /** | 281 | /** |
@@ -290,8 +291,8 @@ GNUNET_CORE_monitor_stop(struct GNUNET_CORE_MonitorHandle *mh); | |||
290 | * @return #GNUNET_YES if the peer is connected to us; #GNUNET_NO if not | 291 | * @return #GNUNET_YES if the peer is connected to us; #GNUNET_NO if not |
291 | */ | 292 | */ |
292 | int | 293 | int |
293 | GNUNET_CORE_is_peer_connected_sync(const struct GNUNET_CORE_Handle *h, | 294 | GNUNET_CORE_is_peer_connected_sync (const struct GNUNET_CORE_Handle *h, |
294 | const struct GNUNET_PeerIdentity *pid); | 295 | const struct GNUNET_PeerIdentity *pid); |
295 | 296 | ||
296 | 297 | ||
297 | /** | 298 | /** |
@@ -308,8 +309,8 @@ GNUNET_CORE_is_peer_connected_sync(const struct GNUNET_CORE_Handle *h, | |||
308 | * to the target peer | 309 | * to the target peer |
309 | */ | 310 | */ |
310 | struct GNUNET_MQ_Handle * | 311 | struct GNUNET_MQ_Handle * |
311 | GNUNET_CORE_mq_create(struct GNUNET_CORE_Handle *h, | 312 | GNUNET_CORE_mq_create (struct GNUNET_CORE_Handle *h, |
312 | const struct GNUNET_PeerIdentity *target); | 313 | const struct GNUNET_PeerIdentity *target); |
313 | 314 | ||
314 | 315 | ||
315 | #if 0 /* keep Emacsens' auto-indent happy */ | 316 | #if 0 /* keep Emacsens' auto-indent happy */ |