aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-28 19:22:37 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-28 19:22:37 +0000
commit7ff76f7447000b2dacd06882eae64ab301bd8757 (patch)
tree57352f76584666958f9abc7cf3cefeadc71dfe54 /src
parent4493d69b8625d799167e82edc1aca52617ba913d (diff)
downloadgnunet-7ff76f7447000b2dacd06882eae64ab301bd8757.tar.gz
gnunet-7ff76f7447000b2dacd06882eae64ab301bd8757.zip
- missing header changes
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_mesh_service.h31
-rw-r--r--src/include/gnunet_protocols.h30
2 files changed, 54 insertions, 7 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index a5ebcb1ce..b99c724b9 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -372,7 +372,9 @@ GNUNET_MESH_receive_done (struct GNUNET_MESH_Channel *channel);
372 * @param target other endpoint of the channel 372 * @param target other endpoint of the channel
373 */ 373 */
374typedef void (*GNUNET_MESH_ChannelsCB) (void *cls, 374typedef void (*GNUNET_MESH_ChannelsCB) (void *cls,
375 uint32_t channel_number, 375 uint32_t root_channel_number,
376 uint32_t dest_channel_number,
377 uint32_t public_channel_number,
376 const struct GNUNET_PeerIdentity *origin, 378 const struct GNUNET_PeerIdentity *origin,
377 const struct GNUNET_PeerIdentity *target); 379 const struct GNUNET_PeerIdentity *target);
378 380
@@ -391,6 +393,33 @@ typedef void (*GNUNET_MESH_ChannelCB) (void *cls,
391 393
392 394
393/** 395/**
396 * Method called to retrieve information about all tunnels in MESH.
397 *
398 * @param cls Closure.
399 * @param peer Peer in the channel's tree.
400 */
401typedef void (*GNUNET_MESH_TunnelsCB) (void *cls,
402 const struct GNUNET_PeerIdentity *peer);
403
404
405
406/**
407 * Method called to retrieve information about a specific tunnel the mesh peer
408 * has established, o`r is trying to establish.
409 *
410 * @param cls Closure.
411 * @param peer Peer in the channel's tree.
412 */
413typedef void (*GNUNET_MESH_TunnelCB) (void *cls,
414 const struct GNUNET_PeerIdentity *peer,
415 unsigned int channels,
416 unsigned int connections,
417 unsigned int estatus,
418 unsigned int cstatus
419 );
420
421
422/**
394 * Request information about the running mesh peer. 423 * Request information about the running mesh peer.
395 * The callback will be called for every channel known to the service, 424 * The callback will be called for every channel known to the service,
396 * listing all active peers that belong to the channel. 425 * listing all active peers that belong to the channel.
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 9d458ca1c..5b7bc591a 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -899,16 +899,34 @@ extern "C"
899#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK 287 899#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK 287
900 900
901/** 901/**
902 * Local information about all tunnels of service. DEPRECATED 902 * Local information about all channels of service.
903 */ 903 */
904#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS 287 904#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNELS 290
905#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNELS 287
906 905
907/** 906/**
908 * Local information of service about a specific tunnel. DEPRECATED 907 * Local information of service about a specific channel.
909 */ 908 */
910#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL 288 909#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNEL 291
911#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNEL 288 910
911/**
912 * Local information about all tunnels of service.
913 */
914#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS 292
915
916/**
917 * Local information of service about a specific tunnel.
918 */
919#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL 293
920
921/**
922 * Local information about all connections of service.
923 */
924#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CONNECTIONS 294
925
926/**
927 * Local information of service about a specific connection.
928 */
929#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CONNECTION 295
912 930
913/** 931/**
914 * Traffic (net-cat style) used by the Command Line Interface. 932 * Traffic (net-cat style) used by the Command Line Interface.