diff options
Diffstat (limited to 'src/include/gnunet_cadet_service.h')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 44 |
1 files changed, 34 insertions, 10 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index ce44be88a..82350ed32 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -572,25 +572,49 @@ GNUNET_CADET_get_path_cancel (struct GNUNET_CADET_GetPath *gp); | |||
572 | 572 | ||
573 | 573 | ||
574 | /** | 574 | /** |
575 | * Details about a tunnel managed by CADET. | ||
576 | */ | ||
577 | struct GNUNET_CADET_TunnelDetails | ||
578 | { | ||
579 | /** | ||
580 | * Target of the tunnel. | ||
581 | */ | ||
582 | struct GNUNET_PeerIdentity peer; | ||
583 | |||
584 | /** | ||
585 | * How many channels use the tunnel. | ||
586 | */ | ||
587 | uint32_t channels; | ||
588 | |||
589 | /** | ||
590 | * How many connections support the tunnel. | ||
591 | */ | ||
592 | uint32_t connections; | ||
593 | |||
594 | /** | ||
595 | * What is our encryption state? | ||
596 | */ | ||
597 | uint16_t estate; | ||
598 | |||
599 | /** | ||
600 | * What is our connectivity state? | ||
601 | */ | ||
602 | uint16_t cstate; | ||
603 | }; | ||
604 | |||
605 | |||
606 | /** | ||
575 | * Method called to retrieve information about all tunnels in CADET, called | 607 | * Method called to retrieve information about all tunnels in CADET, called |
576 | * once per tunnel. | 608 | * once per tunnel. |
577 | * | 609 | * |
578 | * After last tunnel has been reported, an additional call with NULL is done. | 610 | * After last tunnel has been reported, an additional call with NULL is done. |
579 | * | 611 | * |
580 | * @param cls Closure. | 612 | * @param cls Closure. |
581 | * @param peer Destination peer, or NULL on "EOF". | 613 | * @param td tunnel details, NULL for end of list |
582 | * @param channels Number of channels. | ||
583 | * @param connections Number of connections. | ||
584 | * @param estate Encryption state. | ||
585 | * @param cstate Connectivity state. | ||
586 | */ | 614 | */ |
587 | typedef void | 615 | typedef void |
588 | (*GNUNET_CADET_TunnelsCB) (void *cls, | 616 | (*GNUNET_CADET_TunnelsCB) (void *cls, |
589 | const struct GNUNET_PeerIdentity *peer, | 617 | const struct GNUNET_CADET_TunnelDetails *td); |
590 | unsigned int channels, | ||
591 | unsigned int connections, | ||
592 | uint16_t estate, | ||
593 | uint16_t cstate); | ||
594 | 618 | ||
595 | 619 | ||
596 | /** | 620 | /** |