diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-01-01 13:35:28 +0900 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-01-01 13:35:28 +0900 |
commit | 0c5090e7d76fd7c85b92f0c4f918cf5420bd68f8 (patch) | |
tree | 1c2d5d10f4a3d288c42198b7989cd70ac9537f05 /src/transport/transport-testing2.h | |
parent | 65b645e3c3910401d43d922d46096aa22c6de9e7 (diff) | |
download | gnunet-0c5090e7d76fd7c85b92f0c4f918cf5420bd68f8.tar.gz gnunet-0c5090e7d76fd7c85b92f0c4f918cf5420bd68f8.zip |
fix backchannel
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r-- | src/transport/transport-testing2.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h index 4e047828e..e7602e3e2 100644 --- a/src/transport/transport-testing2.h +++ b/src/transport/transport-testing2.h | |||
@@ -47,6 +47,19 @@ struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue; | |||
47 | */ | 47 | */ |
48 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission; | 48 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission; |
49 | 49 | ||
50 | /** | ||
51 | * @brief Function signature for callbacks that are called when new | ||
52 | * backchannel message arrived | ||
53 | * | ||
54 | * @param cls Closure | ||
55 | * @param msg Backchannel message | ||
56 | * @param pid Target peer | ||
57 | */ | ||
58 | typedef struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * | ||
59 | (*GNUNET_TRANSPORT_TESTING_BackchannelCallback)(void *cls, | ||
60 | struct GNUNET_MessageHeader *msg, | ||
61 | struct GNUNET_PeerIdentity *pid); | ||
62 | |||
50 | 63 | ||
51 | /** | 64 | /** |
52 | * @brief Function signature for callbacks that are called when new | 65 | * @brief Function signature for callbacks that are called when new |
@@ -134,7 +147,7 @@ typedef void | |||
134 | struct | 147 | struct |
135 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle | 148 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle |
136 | *tc_h, | 149 | *tc_h, |
137 | const char* payload, | 150 | const char*payload, |
138 | size_t payload_len); | 151 | size_t payload_len); |
139 | 152 | ||
140 | 153 | ||
@@ -164,6 +177,7 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_service_start ( | |||
164 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, | 177 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, |
165 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, | 178 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, |
166 | GNUNET_TRANSPORT_TESTING_IncomingMessageCallback incoming_message_cb, | 179 | GNUNET_TRANSPORT_TESTING_IncomingMessageCallback incoming_message_cb, |
180 | GNUNET_TRANSPORT_TESTING_BackchannelCallback bc_cb, | ||
167 | void *cb_cls); | 181 | void *cb_cls); |
168 | 182 | ||
169 | 183 | ||