summaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-09-02 10:01:22 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-09-02 10:01:22 +0000
commite658c7a0303f1e5c59c66e0a9be29a74e08ab0cc (patch)
treec6547985ef3ab2fdf67cd54957473876a08a02c2 /src/include/gnunet_testbed_service.h
parent719fb81dbaf034f624abaf6cc0a51c05446191f4 (diff)
- barrier stuff
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h25
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;
/**
+ * Status of a barrier
+ */
+enum GNUNET_TESTBED_BarrierStatus
+{
+ /**
+ * Barrier initialised successfully
+ */
+ BARRIER_STATUS_INITIALISED = 1,
+
+ /**
+ * Barrier is crossed
+ */
+ BARRIER_STATUS_CROSSED,
+
+ /**
+ * Error status
+ */
+ BARRIER_STATUS_ERROR,
+
+};
+
+
+/**
* Functions of this type are to be given as callback argument to
* GNUNET_TESTBED_barrier_init(). The callback will be called when status
* information is available for the barrier.
@@ -1494,7 +1517,7 @@ typedef void (*GNUNET_TESTBED_barrier_status_cb) (void *cls,
const char *name,
struct GNUNET_TESTBED_Barrier
*barrier,
- int status,
+ enum GNUNET_TESTBED_BarrierStatus status,
const char *emsg);