diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-02 10:01:22 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-02 10:01:22 +0000 |
commit | e658c7a0303f1e5c59c66e0a9be29a74e08ab0cc (patch) | |
tree | c6547985ef3ab2fdf67cd54957473876a08a02c2 /src | |
parent | 719fb81dbaf034f624abaf6cc0a51c05446191f4 (diff) | |
download | gnunet-e658c7a0303f1e5c59c66e0a9be29a74e08ab0cc.tar.gz gnunet-e658c7a0303f1e5c59c66e0a9be29a74e08ab0cc.zip |
- barrier stuff
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_testbed_service.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h index 173aa76b3..1810c9f25 100644 --- a/src/include/gnunet_testbed_service.h +++ b/src/include/gnunet_testbed_service.h | |||
@@ -1478,6 +1478,29 @@ struct GNUNET_TESTBED_Barrier; | |||
1478 | 1478 | ||
1479 | 1479 | ||
1480 | /** | 1480 | /** |
1481 | * Status of a barrier | ||
1482 | */ | ||
1483 | enum GNUNET_TESTBED_BarrierStatus | ||
1484 | { | ||
1485 | /** | ||
1486 | * Barrier initialised successfully | ||
1487 | */ | ||
1488 | BARRIER_STATUS_INITIALISED = 1, | ||
1489 | |||
1490 | /** | ||
1491 | * Barrier is crossed | ||
1492 | */ | ||
1493 | BARRIER_STATUS_CROSSED, | ||
1494 | |||
1495 | /** | ||
1496 | * Error status | ||
1497 | */ | ||
1498 | BARRIER_STATUS_ERROR, | ||
1499 | |||
1500 | }; | ||
1501 | |||
1502 | |||
1503 | /** | ||
1481 | * Functions of this type are to be given as callback argument to | 1504 | * Functions of this type are to be given as callback argument to |
1482 | * GNUNET_TESTBED_barrier_init(). The callback will be called when status | 1505 | * GNUNET_TESTBED_barrier_init(). The callback will be called when status |
1483 | * information is available for the barrier. | 1506 | * information is available for the barrier. |
@@ -1494,7 +1517,7 @@ typedef void (*GNUNET_TESTBED_barrier_status_cb) (void *cls, | |||
1494 | const char *name, | 1517 | const char *name, |
1495 | struct GNUNET_TESTBED_Barrier | 1518 | struct GNUNET_TESTBED_Barrier |
1496 | *barrier, | 1519 | *barrier, |
1497 | int status, | 1520 | enum GNUNET_TESTBED_BarrierStatus status, |
1498 | const char *emsg); | 1521 | const char *emsg); |
1499 | 1522 | ||
1500 | 1523 | ||