diff options
author | Julius Bünger <buenger@mytum.de> | 2019-04-20 10:57:18 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2019-04-20 10:57:18 +0200 |
commit | b26f2bce0710217bf68fd829ba6a652ca09cbfa8 (patch) | |
tree | 4c18650585f86f1bf80462ce939df0867234be95 /src/transport/transport-testing2.h | |
parent | 4ab00a8c15cf7cf286e290bc6227c5cbf3469dac (diff) | |
download | gnunet-b26f2bce0710217bf68fd829ba6a652ca09cbfa8.tar.gz gnunet-b26f2bce0710217bf68fd829ba6a652ca09cbfa8.zip |
TNG testing: Add ability to open queue
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r-- | src/transport/transport-testing2.h | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h index c5adda4eb..6aee919cd 100644 --- a/src/transport/transport-testing2.h +++ b/src/transport/transport-testing2.h | |||
@@ -40,7 +40,29 @@ struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle; | |||
40 | */ | 40 | */ |
41 | typedef void | 41 | typedef void |
42 | (*GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback)(void *cls, | 42 | (*GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback)(void *cls, |
43 | const struct GNUNET_TRANSPORT_CommunicatorAvailableMessage *msg); | 43 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
44 | enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc, | ||
45 | char *address_prefix); | ||
46 | |||
47 | |||
48 | typedef void | ||
49 | (*GNUNET_TRANSPORT_TESTING_AddAddressCallback)(void *cls, | ||
50 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | ||
51 | const char *address, | ||
52 | struct GNUNET_TIME_Relative expiration, | ||
53 | uint32_t aid, | ||
54 | enum GNUNET_NetworkType nt); | ||
55 | |||
56 | |||
57 | typedef void | ||
58 | (*GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback)(void *cls, | ||
59 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, | ||
60 | int will_try); | ||
61 | |||
62 | |||
63 | typedef void | ||
64 | (*GNUNET_TRANSPORT_TESTING_AddQueueCallback)(void *cls, | ||
65 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h); | ||
44 | 66 | ||
45 | 67 | ||
46 | /** | 68 | /** |
@@ -58,17 +80,18 @@ struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * | |||
58 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start | 80 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start |
59 | (const char *service_name, | 81 | (const char *service_name, |
60 | const char *cfg_filename, | 82 | const char *cfg_filename, |
61 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available, | 83 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available_cb, |
62 | //GNUNET_TRANSPORT_TESTING_Callback2 cb2, | 84 | GNUNET_TRANSPORT_TESTING_AddAddressCallback add_address_cb, |
63 | //GNUNET_TRANSPORT_TESTING_Callback3 cb3, | 85 | GNUNET_TRANSPORT_TESTING_QueueCreateReplyCallback queue_create_reply_cb, |
64 | //GNUNET_TRANSPORT_TESTING_Callback4 cb4, | 86 | GNUNET_TRANSPORT_TESTING_AddQueueCallback add_queue_cb, |
65 | void *cb_cls); | 87 | void *cb_cls); |
66 | 88 | ||
67 | //void | 89 | void |
68 | //GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue | 90 | GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue |
69 | // (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tch, | 91 | (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h, |
70 | // const char *address); | 92 | const struct GNUNET_PeerIdentity *peer_id, |
71 | // | 93 | const char *address); |
94 | |||
72 | //struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * | 95 | //struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * |
73 | //GNUNET_TRANSPORT_TESTING_transport_communicator_send | 96 | //GNUNET_TRANSPORT_TESTING_transport_communicator_send |
74 | // (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tcq, | 97 | // (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tcq, |