aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-11 16:58:27 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-11 16:58:27 +0000
commit562b33143ee9fa431a68ea6741e4feb3ba388f83 (patch)
tree6318eb2c56ff76730708a4791804842c63cf1f81 /src/include
parent64821d4ae43b03b30de3dd136137598c0d5a2ab2 (diff)
downloadgnunet-562b33143ee9fa431a68ea6741e4feb3ba388f83.tar.gz
gnunet-562b33143ee9fa431a68ea6741e4feb3ba388f83.zip
changing heap remove node api to not pass heap; more fs hacking
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_container_lib.h3
-rw-r--r--src/include/gnunet_mesh_service.h18
2 files changed, 18 insertions, 3 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index 41ed4bd3f..6b7016c74 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -1011,8 +1011,7 @@ GNUNET_CONTAINER_heap_remove_root (struct GNUNET_CONTAINER_Heap *heap);
1011 * @return element data stored at the node, NULL if heap is empty 1011 * @return element data stored at the node, NULL if heap is empty
1012 */ 1012 */
1013void * 1013void *
1014GNUNET_CONTAINER_heap_remove_node (struct GNUNET_CONTAINER_Heap *heap, 1014GNUNET_CONTAINER_heap_remove_node (struct GNUNET_CONTAINER_HeapNode *node);
1015 struct GNUNET_CONTAINER_HeapNode *node);
1016 1015
1017 1016
1018/** 1017/**
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index 1677c714c..738811950 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -61,6 +61,7 @@ struct GNUNET_MESH_Tunnel;
61 * @param cls closure (set from GNUNET_MESH_connect) 61 * @param cls closure (set from GNUNET_MESH_connect)
62 * @param tunnel connection to the other end 62 * @param tunnel connection to the other end
63 * @param tunnel_ctx place to store local state associated with the tunnel 63 * @param tunnel_ctx place to store local state associated with the tunnel
64 * @param sender who sent the message
64 * @param message the actual message 65 * @param message the actual message
65 * @param atsi performance data for the connection 66 * @param atsi performance data for the connection
66 * @return GNUNET_OK to keep the connection open, 67 * @return GNUNET_OK to keep the connection open,
@@ -69,7 +70,8 @@ struct GNUNET_MESH_Tunnel;
69typedef int 70typedef int
70 (*GNUNET_MESH_MessageCallback) (void *cls, 71 (*GNUNET_MESH_MessageCallback) (void *cls,
71 struct GNUNET_MESH_Tunnel *tunnel, 72 struct GNUNET_MESH_Tunnel *tunnel,
72 void **tunnel_ctx, 73 void **tunnel_ctx,
74 const struct GNUNET_PeerIdentity *sender,
73 const struct GNUNET_MessageHeader *message, 75 const struct GNUNET_MessageHeader *message,
74 const struct GNUNET_TRANSPORT_ATS_Information *atsi); 76 const struct GNUNET_TRANSPORT_ATS_Information *atsi);
75 77
@@ -249,6 +251,18 @@ GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel,
249 251
250 252
251/** 253/**
254 * Request that a peer should be removed from the tunnel. The existing
255 * disconnect handler will be called ONCE if we were connected.
256 *
257 * @param tunnel handle to existing tunnel
258 * @param peer peer to remove
259 */
260void
261GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
262 const struct GNUNET_PeerIdentity *peer);
263
264
265/**
252 * Request that the mesh should try to connect to a peer supporting the given 266 * Request that the mesh should try to connect to a peer supporting the given
253 * message type. 267 * message type.
254 * 268 *
@@ -300,6 +314,7 @@ struct GNUNET_MESH_TransmitHandle;
300 * @param cork is corking allowed for this transmission? 314 * @param cork is corking allowed for this transmission?
301 * @param priority how important is the message? 315 * @param priority how important is the message?
302 * @param maxdelay how long can the message wait? 316 * @param maxdelay how long can the message wait?
317 * @param target destination for the message, NULL for multicast to all tunnel targets
303 * @param notify_size how many bytes of buffer space does notify want? 318 * @param notify_size how many bytes of buffer space does notify want?
304 * @param notify function to call when buffer space is available; 319 * @param notify function to call when buffer space is available;
305 * will be called with NULL on timeout or if the overall queue 320 * will be called with NULL on timeout or if the overall queue
@@ -319,6 +334,7 @@ GNUNET_MESH_notify_transmit_ready (struct
319 struct 334 struct
320 GNUNET_TIME_Relative 335 GNUNET_TIME_Relative
321 maxdelay, 336 maxdelay,
337 // const struct GNUNET_PeerIdentity *target,
322 size_t 338 size_t
323 notify_size, 339 notify_size,
324 GNUNET_CONNECTION_TransmitReadyNotify 340 GNUNET_CONNECTION_TransmitReadyNotify