diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-18 13:11:36 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-18 13:11:36 +0000 |
commit | d0d39def77f1f81dd83823e0fe2cfe84a5393a74 (patch) | |
tree | 7c566f79daa839bc74569a415c1b0d2537263280 /src/testbed/testbed_api_testbed.c | |
parent | 153c0ba219f50e851aaef92d0cef28f80a33763e (diff) | |
download | gnunet-d0d39def77f1f81dd83823e0fe2cfe84a5393a74.tar.gz gnunet-d0d39def77f1f81dd83823e0fe2cfe84a5393a74.zip |
expose Operation and associated closure in every event
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index 96be90e83..5e62a2845 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -602,7 +602,7 @@ event_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | |||
602 | switch (event->type) | 602 | switch (event->type) |
603 | { | 603 | { |
604 | case GNUNET_TESTBED_ET_OPERATION_FINISHED: | 604 | case GNUNET_TESTBED_ET_OPERATION_FINISHED: |
605 | dll_op = event->details.operation_finished.op_cls; | 605 | dll_op = event->op_cls; |
606 | if (NULL != event->details.operation_finished.emsg) | 606 | if (NULL != event->details.operation_finished.emsg) |
607 | { | 607 | { |
608 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Linking controllers failed. Exiting")); | 608 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Linking controllers failed. Exiting")); |
@@ -610,7 +610,7 @@ event_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | |||
610 | } | 610 | } |
611 | else | 611 | else |
612 | rc->reg_hosts++; | 612 | rc->reg_hosts++; |
613 | GNUNET_assert (event->details.operation_finished.operation == dll_op->op); | 613 | GNUNET_assert (event->op == dll_op->op); |
614 | GNUNET_CONTAINER_DLL_remove (rc->dll_op_head, rc->dll_op_tail, dll_op); | 614 | GNUNET_CONTAINER_DLL_remove (rc->dll_op_head, rc->dll_op_tail, dll_op); |
615 | GNUNET_TESTBED_operation_done (dll_op->op); | 615 | GNUNET_TESTBED_operation_done (dll_op->op); |
616 | GNUNET_free (dll_op); | 616 | GNUNET_free (dll_op); |
@@ -629,7 +629,7 @@ event_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | |||
629 | for (dll_op = rc->dll_op_head; NULL != dll_op; dll_op = dll_op->next) | 629 | for (dll_op = rc->dll_op_head; NULL != dll_op; dll_op = dll_op->next) |
630 | { | 630 | { |
631 | if ((GNUNET_TESTBED_ET_OPERATION_FINISHED == event->type) && | 631 | if ((GNUNET_TESTBED_ET_OPERATION_FINISHED == event->type) && |
632 | (event->details.operation_finished.operation == dll_op->op)) | 632 | (event->op == dll_op->op)) |
633 | break; | 633 | break; |
634 | } | 634 | } |
635 | if (NULL == dll_op) | 635 | if (NULL == dll_op) |