aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-10-06 22:54:21 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-10-06 22:54:21 +0000
commit14ddd612091d3a894901bdf6213db7487178f6e2 (patch)
tree30c529c77e87723d2d2798209f4697792cff21fe /src/include
parent9f7e7d369a842fe1621bc4b9af64ac3e5f609bde (diff)
downloadgnunet-14ddd612091d3a894901bdf6213db7487178f6e2.tar.gz
gnunet-14ddd612091d3a894901bdf6213db7487178f6e2.zip
MQ for CORE
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_core_service.h18
-rw-r--r--src/include/gnunet_mesh_service.h4
2 files changed, 20 insertions, 2 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h
index 64daadcea..4eca0cc03 100644
--- a/src/include/gnunet_core_service.h
+++ b/src/include/gnunet_core_service.h
@@ -292,6 +292,24 @@ GNUNET_CORE_is_peer_connected_sync (const struct GNUNET_CORE_Handle *h,
292 const struct GNUNET_PeerIdentity *pid); 292 const struct GNUNET_PeerIdentity *pid);
293 293
294 294
295/**
296 * Create a message queue for sending messages to a peer with CORE.
297 * Messages may only be queued with #GNUNET_MQ_send once the init callback has
298 * been called for the given handle.
299 * There must only be one queue per peer for each core handle.
300 * The message queue can only be used to transmit messages,
301 * not to receive them.
302 *
303 * @param h the core handle
304 * @param target the target peer for this queue, may not be NULL
305 * @return a message queue for sending messages over the core handle
306 * to the target peer
307 */
308struct GNUNET_MQ_Handle *
309GNUNET_CORE_mq_create (struct GNUNET_CORE_Handle *h,
310 const struct GNUNET_PeerIdentity *target);
311
312
295#if 0 /* keep Emacsens' auto-indent happy */ 313#if 0 /* keep Emacsens' auto-indent happy */
296{ 314{
297#endif 315#endif
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index 08748d87b..fa6382683 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -438,8 +438,8 @@ GNUNET_MESH_get_tunnels_cancel (struct GNUNET_MESH_Handle *h);
438 * The message queue can only be used to transmit messages, 438 * The message queue can only be used to transmit messages,
439 * not to receive them. 439 * not to receive them.
440 * 440 *
441 * @param tunnel the tunnel to create the message qeue for 441 * @param tunnel the tunnel to create the message queue for
442 * @return a message queue to messages over the tunnel 442 * @return a message queue for sending messages over the tunnel
443 */ 443 */
444struct GNUNET_MQ_Handle * 444struct GNUNET_MQ_Handle *
445GNUNET_MESH_mq_create (struct GNUNET_MESH_Tunnel *tunnel); 445GNUNET_MESH_mq_create (struct GNUNET_MESH_Tunnel *tunnel);