diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-01 11:14:12 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-01 11:14:12 +0000 |
commit | c4b94034c6affa4fbb18acc63cb9402a53f30461 (patch) | |
tree | f2b1bca48eda2598b2ebdc783f763efb71e3d8f2 /src/testbed/gnunet-service-testbed.h | |
parent | 309276a88d1e57dffbea0014dc0708726c2e9376 (diff) | |
download | gnunet-c4b94034c6affa4fbb18acc63cb9402a53f30461.tar.gz gnunet-c4b94034c6affa4fbb18acc63cb9402a53f30461.zip |
- rename and doc
Diffstat (limited to 'src/testbed/gnunet-service-testbed.h')
-rw-r--r-- | src/testbed/gnunet-service-testbed.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/testbed/gnunet-service-testbed.h b/src/testbed/gnunet-service-testbed.h index d4adf2526..7314122d3 100644 --- a/src/testbed/gnunet-service-testbed.h +++ b/src/testbed/gnunet-service-testbed.h | |||
@@ -803,17 +803,24 @@ GST_cache_add_hello (const unsigned int peer_id, | |||
803 | 803 | ||
804 | 804 | ||
805 | /** | 805 | /** |
806 | * Callback from cache with needed handles set | 806 | * Functions of this type are called when the needed handle is available for |
807 | * usage. These functions are to be registered with either of the functions | ||
808 | * GST_cache_get_handle_transport() or GST_cache_get_handle_core(). The | ||
809 | * corresponding handles will be set and if they are not, then it signals an | ||
810 | * error while opening the handles. | ||
807 | * | 811 | * |
808 | * @param cls the closure passed to GST_cache_get_handle_transport() | 812 | * @param cls the closure passed to GST_cache_get_handle_transport() or |
813 | * GST_cache_get_handle_core() | ||
809 | * @param ch the handle to CORE. Can be NULL if it is not requested | 814 | * @param ch the handle to CORE. Can be NULL if it is not requested |
810 | * @param th the handle to TRANSPORT. Can be NULL if it is not requested | 815 | * @param th the handle to TRANSPORT. Can be NULL if it is not requested |
811 | * @param peer_id the identity of the peer. Will be NULL if ch is NULL. In other | 816 | * @param peer_id the identity of the peer. Will be NULL if ch is NULL. In other |
812 | * cases, its value being NULL means that CORE connection has failed. | 817 | * cases, its value being NULL means that CORE connection has failed. |
813 | */ | 818 | */ |
814 | typedef void (*GST_cache_callback) (void *cls, struct GNUNET_CORE_Handle *ch, | 819 | typedef void (*GST_cache_handle_ready_cb) (void *cls, |
815 | struct GNUNET_TRANSPORT_Handle *th, | 820 | struct GNUNET_CORE_Handle *ch, |
816 | const struct GNUNET_PeerIdentity *peer_id); | 821 | struct GNUNET_TRANSPORT_Handle *th, |
822 | const struct | ||
823 | GNUNET_PeerIdentity *peer_id); | ||
817 | 824 | ||
818 | 825 | ||
819 | /** | 826 | /** |
@@ -855,7 +862,7 @@ typedef void (*GST_cache_peer_connect_notify) (void *cls, | |||
855 | struct GSTCacheGetHandle * | 862 | struct GSTCacheGetHandle * |
856 | GST_cache_get_handle_transport (unsigned int peer_id, | 863 | GST_cache_get_handle_transport (unsigned int peer_id, |
857 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 864 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
858 | GST_cache_callback cb, | 865 | GST_cache_handle_ready_cb cb, |
859 | void *cb_cls, | 866 | void *cb_cls, |
860 | const struct GNUNET_PeerIdentity *target, | 867 | const struct GNUNET_PeerIdentity *target, |
861 | GST_cache_peer_connect_notify connect_notify_cb, | 868 | GST_cache_peer_connect_notify connect_notify_cb, |
@@ -886,7 +893,7 @@ GST_cache_get_handle_transport (unsigned int peer_id, | |||
886 | struct GSTCacheGetHandle * | 893 | struct GSTCacheGetHandle * |
887 | GST_cache_get_handle_core (unsigned int peer_id, | 894 | GST_cache_get_handle_core (unsigned int peer_id, |
888 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 895 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
889 | GST_cache_callback cb, | 896 | GST_cache_handle_ready_cb cb, |
890 | void *cb_cls, | 897 | void *cb_cls, |
891 | const struct GNUNET_PeerIdentity *target, | 898 | const struct GNUNET_PeerIdentity *target, |
892 | GST_cache_peer_connect_notify connect_notify_cb, | 899 | GST_cache_peer_connect_notify connect_notify_cb, |