summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-07-02 14:56:30 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-07-02 14:56:30 +0000
commitad3870165e0c80ac5ec04d5ac78251eeba13e403 (patch)
treedc96d36a90b7b776f6e32322dee68ccba18a2a3d /src/transport/transport-testing.h
parent6d9ebef7d96adad01308c135f27748ec3f6b7774 (diff)
porting transport testing to new testing lib (mantis 2453)
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index 3129bc0a0..0b1f24591 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -27,9 +27,7 @@
#include "platform.h"
#include "gnunet_common.h"
-#include "gnunet_getopt_lib.h"
#include "gnunet_hello_lib.h"
-#include "gnunet_os_lib.h"
#include "gnunet_program_lib.h"
#include "gnunet_container_lib.h"
#include "gnunet_transport_service.h"
@@ -146,16 +144,6 @@ struct PeerContext
void *cb_cls;
/**
- * Peer's service home directory
- */
- char *servicehome;
-
- /**
- * Hostkey file
- */
- char *hostkeyfile;
-
- /**
* An unique number to identify the peer
*/
unsigned int no;
@@ -179,19 +167,29 @@ struct ConnectingContext
struct GNUNET_TRANSPORT_TESTING_handle
{
- struct ConnectingContext *cc_head;
- struct ConnectingContext *cc_tail;
-
/**
* Testing library system handle
*/
struct GNUNET_TESTING_System *tl_system;
- char *hostkey_data;
- int hostkeys_total;
- int hostkeys_last;
+ /**
+ * head DLL of connect contexts
+ */
+ struct ConnectingContext *cc_head;
+
+ /**
+ * head DLL of connect contexts
+ */
+ struct ConnectingContext *cc_tail;
+ /**
+ * head DLL of peers
+ */
struct PeerContext *p_head;
+
+ /**
+ * tail DLL of peers
+ */
struct PeerContext *p_tail;
};