summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing2.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-20 14:01:16 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-20 14:01:53 +0200
commit37731950386546244483b8037127fb18b12bf9d0 (patch)
tree0958dcdb7f2f20189cf3fb52d8f92f81126fdeb4 /src/transport/transport-testing2.h
parent9522926cc78a18ab5a1ef8cdf3f58312d675c2e5 (diff)
TNG testing: Handle queues properly
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r--src/transport/transport-testing2.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h
index 6aee919cd..4b9eb0f54 100644
--- a/src/transport/transport-testing2.h
+++ b/src/transport/transport-testing2.h
@@ -32,6 +32,10 @@
struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle;
+struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue;
+
+struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission;
+
/**
* @brief Function signature for callbacks that are called when new communicators become available
*
@@ -62,7 +66,8 @@ typedef void
typedef void
(*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls,
- struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h);
+ struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h,
+ struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue);
/**
@@ -92,9 +97,11 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue
const struct GNUNET_PeerIdentity *peer_id,
const char *address);
-//struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission *
-//GNUNET_TRANSPORT_TESTING_transport_communicator_send
-// (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tcq,
-// const struct GNUNET_MessageHeader *hdr,
-// GNUNET_TRANSPORT_TESTING_SuccessStatus cb, void *cb_cls);
+struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission *
+GNUNET_TRANSPORT_TESTING_transport_communicator_send
+ (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue,
+ const void *payload,
+ size_t payload_size/*,
+ GNUNET_TRANSPORT_TESTING_SuccessStatus cb,
+ void *cb_cls*/);