aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_core_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_core_service.h')
-rw-r--r--src/include/gnunet_core_service.h37
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 */
127struct GNUNET_CORE_Handle * 127struct GNUNET_CORE_Handle *
128GNUNET_CORE_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, 128GNUNET_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 */
141void 141void
142GNUNET_CORE_disconnect(struct GNUNET_CORE_Handle *handle); 142GNUNET_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 */
152struct GNUNET_MQ_Handle * 152struct GNUNET_MQ_Handle *
153GNUNET_CORE_get_mq(const struct GNUNET_CORE_Handle *h, 153GNUNET_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 */
176enum GNUNET_CORE_KxState { 176enum 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 */
265struct GNUNET_CORE_MonitorHandle * 266struct GNUNET_CORE_MonitorHandle *
266GNUNET_CORE_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, 267GNUNET_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 */
276void 277void
277GNUNET_CORE_monitor_stop(struct GNUNET_CORE_MonitorHandle *mh); 278GNUNET_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 */
292int 293int
293GNUNET_CORE_is_peer_connected_sync(const struct GNUNET_CORE_Handle *h, 294GNUNET_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 */
310struct GNUNET_MQ_Handle * 311struct GNUNET_MQ_Handle *
311GNUNET_CORE_mq_create(struct GNUNET_CORE_Handle *h, 312GNUNET_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 */