diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-09-05 11:44:56 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-09-05 11:44:56 +0000 |
commit | 1744330ca7033f849bf486188bf125a2b3818498 (patch) | |
tree | dce611a6df10def20b3ebbc44ab6ebe149f43137 /src/include/gnunet_testbed_service.h | |
parent | 270a6392703fe1cb99f69ed8a35c1be0c864b11f (diff) | |
download | gnunet-1744330ca7033f849bf486188bf125a2b3818498.tar.gz gnunet-1744330ca7033f849bf486188bf125a2b3818498.zip |
service connect callback instead of operation completion callback
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r-- | src/include/gnunet_testbed_service.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h index 249b40752..92a7beb40 100644 --- a/src/include/gnunet_testbed_service.h +++ b/src/include/gnunet_testbed_service.h | |||
@@ -1041,6 +1041,25 @@ typedef void (*GNUNET_TESTBED_DisconnectAdapter)(void *cls, | |||
1041 | 1041 | ||
1042 | 1042 | ||
1043 | /** | 1043 | /** |
1044 | * Callback to be called when a service connect operation is completed | ||
1045 | * | ||
1046 | * @param cls the callback closure from functions generating an operation | ||
1047 | * @param op the operation that has been finished | ||
1048 | * @param ca_result the service handle returned from GNUNET_TESTBED_ConnectAdapter() | ||
1049 | * @param emsg error message in case the operation has failed; will be NULL if | ||
1050 | * operation has executed successfully. | ||
1051 | */ | ||
1052 | typedef void (*GNUNET_TESTBED_ServiceConnectCompletionCallback) (void *cls, | ||
1053 | struct | ||
1054 | GNUNET_TESTBED_Operation | ||
1055 | *op, | ||
1056 | void | ||
1057 | *ca_result, | ||
1058 | const char | ||
1059 | *emsg ); | ||
1060 | |||
1061 | |||
1062 | /** | ||
1044 | * Connect to a service offered by the given peer. Will ensure that | 1063 | * Connect to a service offered by the given peer. Will ensure that |
1045 | * the request is queued to not overwhelm our ability to create and | 1064 | * the request is queued to not overwhelm our ability to create and |
1046 | * maintain connections with other systems. The actual service | 1065 | * maintain connections with other systems. The actual service |
@@ -1065,7 +1084,7 @@ struct GNUNET_TESTBED_Operation * | |||
1065 | GNUNET_TESTBED_service_connect (void *op_cls, | 1084 | GNUNET_TESTBED_service_connect (void *op_cls, |
1066 | struct GNUNET_TESTBED_Peer *peer, | 1085 | struct GNUNET_TESTBED_Peer *peer, |
1067 | const char *service_name, | 1086 | const char *service_name, |
1068 | GNUNET_TESTBED_OperationCompletionCallback cb, | 1087 | GNUNET_TESTBED_ServiceConnectCompletionCallback cb, |
1069 | void *cb_cls, | 1088 | void *cb_cls, |
1070 | GNUNET_TESTBED_ConnectAdapter ca, | 1089 | GNUNET_TESTBED_ConnectAdapter ca, |
1071 | GNUNET_TESTBED_DisconnectAdapter da, | 1090 | GNUNET_TESTBED_DisconnectAdapter da, |