diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-25 20:01:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-25 20:01:13 +0000 |
commit | 4a381daf63c41550306834dc605378bb39afc6da (patch) | |
tree | 565f2a066344c38fcc1aa57cbff13fc1ef7a7a1e /src/testbed/testbed_api.h | |
parent | 3971743af72d4517e9cf5cc2e08645e11b917331 (diff) | |
download | gnunet-4a381daf63c41550306834dc605378bb39afc6da.tar.gz gnunet-4a381daf63c41550306834dc605378bb39afc6da.zip |
first steps towards MQ
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r-- | src/testbed/testbed_api.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h index 79ac8b97a..cf39e3415 100644 --- a/src/testbed/testbed_api.h +++ b/src/testbed/testbed_api.h | |||
@@ -461,19 +461,30 @@ GNUNET_TESTBED_get_slave_config_ (void *op_cls, | |||
461 | 461 | ||
462 | 462 | ||
463 | /** | 463 | /** |
464 | * Handler for GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS messages. This | 464 | * Validate #GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS message. |
465 | * | ||
466 | * @param cls the controller handle to determine the connection this message | ||
467 | * belongs to | ||
468 | * @param msg the barrier status message | ||
469 | * @return #GNUNET_OK if the message is valid; #GNUNET_SYSERR to tear it | ||
470 | * down signalling an error (message malformed) | ||
471 | */ | ||
472 | int | ||
473 | check_barrier_status_ (struct GNUNET_TESTBED_Controller *c, | ||
474 | const struct GNUNET_TESTBED_BarrierStatusMsg *msg); | ||
475 | |||
476 | |||
477 | /** | ||
478 | * Handler for #GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS messages. This | ||
465 | * function is defined in @file testbed_api_barriers.c | 479 | * function is defined in @file testbed_api_barriers.c |
466 | * | 480 | * |
467 | * @param c the controller handle to determine the connection this message | 481 | * @param c the controller handle to determine the connection this message |
468 | * belongs to | 482 | * belongs to |
469 | * @param msg the barrier status message | 483 | * @param msg the barrier status message |
470 | * @return GNUNET_OK to keep the connection active; GNUNET_SYSERR to tear it | ||
471 | * down signalling an error | ||
472 | */ | 484 | */ |
473 | int | 485 | void |
474 | GNUNET_TESTBED_handle_barrier_status_ (struct GNUNET_TESTBED_Controller *c, | 486 | handle_barrier_status_ (struct GNUNET_TESTBED_Controller *c, |
475 | const struct GNUNET_TESTBED_BarrierStatusMsg | 487 | const struct GNUNET_TESTBED_BarrierStatusMsg *msg); |
476 | *msg); | ||
477 | 488 | ||
478 | 489 | ||
479 | 490 | ||