aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-06 16:06:08 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-06 16:06:08 +0000
commitad25eef39dc8c15b85bd70c6585af95d7e687fd5 (patch)
tree152df39da268b913fd5a93467556ca9249e20416 /src/testbed/gnunet-service-testbed.h
parente2bb863887e78b5847fd86ef5a399a5d13d856d3 (diff)
downloadgnunet-ad25eef39dc8c15b85bd70c6585af95d7e687fd5.tar.gz
gnunet-ad25eef39dc8c15b85bd70c6585af95d7e687fd5.zip
- doc
Diffstat (limited to 'src/testbed/gnunet-service-testbed.h')
-rw-r--r--src/testbed/gnunet-service-testbed.h29
1 files changed, 6 insertions, 23 deletions
diff --git a/src/testbed/gnunet-service-testbed.h b/src/testbed/gnunet-service-testbed.h
index 149a1ad77..bdf0f4cce 100644
--- a/src/testbed/gnunet-service-testbed.h
+++ b/src/testbed/gnunet-service-testbed.h
@@ -345,23 +345,6 @@ struct ForwardedOverlayConnectContext
345 345
346 346
347/** 347/**
348 * The type for data structures which commonly arrive at the slave_event_callback
349 */
350enum ClosureType
351{
352 /**
353 * Type for RegisteredHostContext closures
354 */
355 CLOSURE_TYPE_RHC = 1,
356
357 /**
358 * Type for LinkControllersForwardingContext closures
359 */
360 CLOSURE_TYPE_LCF
361};
362
363
364/**
365 * This context information will be created for each host that is registered at 348 * This context information will be created for each host that is registered at
366 * slave controllers during overlay connects. 349 * slave controllers during overlay connects.
367 */ 350 */
@@ -482,16 +465,16 @@ extern unsigned int GST_host_list_size;
482extern char *GST_stats_dir; 465extern char *GST_stats_dir;
483 466
484/** 467/**
485 * Condition to check if host id is invalid 468 * Condition to check if host id is valid
486 */ 469 */
487#define INVALID_HOST_ID(id) \ 470#define VALID_HOST_ID(id) \
488 ( ((id) >= GST_host_list_size) || (NULL == GST_host_list[id]) ) 471 ( ((id) < GST_host_list_size) && (NULL != GST_host_list[id]) )
489 472
490/** 473/**
491 * Condition to check if peer id is invalid 474 * Condition to check if peer id is valid
492 */ 475 */
493#define INVALID_PEER_ID(id) \ 476#define VALID_PEER_ID(id) \
494 ( ((id) >= GST_peer_list_size) || (NULL == GST_peer_list[id]) ) 477 ( ((id) < GST_peer_list_size) && (NULL != GST_peer_list[id]) )
495 478
496 479
497/** 480/**