diff options
Diffstat (limited to 'src/include/gnunet_core_service.h')
-rw-r--r-- | src/include/gnunet_core_service.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 111eb529d..4e6c48ee8 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -16,7 +16,7 @@ | |||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @author Christian Grothoff | 21 | * @author Christian Grothoff |
22 | * | 22 | * |
@@ -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,8 +173,7 @@ 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 | { | ||
178 | /** | 177 | /** |
179 | * No handshake yet. | 178 | * No handshake yet. |
180 | */ | 179 | */ |
@@ -228,7 +227,6 @@ enum GNUNET_CORE_KxState | |||
228 | * crashed and thus all connection state should be assumed lost. | 227 | * crashed and thus all connection state should be assumed lost. |
229 | */ | 228 | */ |
230 | GNUNET_CORE_KX_CORE_DISCONNECT | 229 | GNUNET_CORE_KX_CORE_DISCONNECT |
231 | |||
232 | }; | 230 | }; |
233 | 231 | ||
234 | 232 | ||
@@ -265,9 +263,9 @@ typedef void (*GNUNET_CORE_MonitorCallback) ( | |||
265 | * @return NULL on error | 263 | * @return NULL on error |
266 | */ | 264 | */ |
267 | struct GNUNET_CORE_MonitorHandle * | 265 | struct GNUNET_CORE_MonitorHandle * |
268 | GNUNET_CORE_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 266 | GNUNET_CORE_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, |
269 | GNUNET_CORE_MonitorCallback peer_cb, | 267 | GNUNET_CORE_MonitorCallback peer_cb, |
270 | void *peer_cb_cls); | 268 | void *peer_cb_cls); |
271 | 269 | ||
272 | 270 | ||
273 | /** | 271 | /** |
@@ -276,7 +274,7 @@ GNUNET_CORE_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
276 | * @param mh monitor to stop | 274 | * @param mh monitor to stop |
277 | */ | 275 | */ |
278 | void | 276 | void |
279 | GNUNET_CORE_monitor_stop (struct GNUNET_CORE_MonitorHandle *mh); | 277 | GNUNET_CORE_monitor_stop(struct GNUNET_CORE_MonitorHandle *mh); |
280 | 278 | ||
281 | 279 | ||
282 | /** | 280 | /** |
@@ -292,8 +290,8 @@ GNUNET_CORE_monitor_stop (struct GNUNET_CORE_MonitorHandle *mh); | |||
292 | * @return #GNUNET_YES if the peer is connected to us; #GNUNET_NO if not | 290 | * @return #GNUNET_YES if the peer is connected to us; #GNUNET_NO if not |
293 | */ | 291 | */ |
294 | int | 292 | int |
295 | GNUNET_CORE_is_peer_connected_sync (const struct GNUNET_CORE_Handle *h, | 293 | GNUNET_CORE_is_peer_connected_sync(const struct GNUNET_CORE_Handle *h, |
296 | const struct GNUNET_PeerIdentity *pid); | 294 | const struct GNUNET_PeerIdentity *pid); |
297 | 295 | ||
298 | 296 | ||
299 | /** | 297 | /** |
@@ -310,8 +308,8 @@ GNUNET_CORE_is_peer_connected_sync (const struct GNUNET_CORE_Handle *h, | |||
310 | * to the target peer | 308 | * to the target peer |
311 | */ | 309 | */ |
312 | struct GNUNET_MQ_Handle * | 310 | struct GNUNET_MQ_Handle * |
313 | GNUNET_CORE_mq_create (struct GNUNET_CORE_Handle *h, | 311 | GNUNET_CORE_mq_create(struct GNUNET_CORE_Handle *h, |
314 | const struct GNUNET_PeerIdentity *target); | 312 | const struct GNUNET_PeerIdentity *target); |
315 | 313 | ||
316 | 314 | ||
317 | #if 0 /* keep Emacsens' auto-indent happy */ | 315 | #if 0 /* keep Emacsens' auto-indent happy */ |