/*
- This file is part of GNUnet
- Copyright (C) 2008--2013 GNUnet e.V.
+ This file is part of GNUnet
+ Copyright (C) 2008--2013 GNUnet e.V.
- GNUnet is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published
- by the Free Software Foundation, either version 3 of the License,
- or (at your option) any later version.
+ GNUnet is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License,
+ or (at your option) any later version.
- GNUnet is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Affero General Public License for more details.
-*/
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
+ */
/**
* @file src/testbed/test_testbed_api_topology.c
/**
* Shutdown task
*/
-static struct GNUNET_SCHEDULER_Task * shutdown_task;
+static struct GNUNET_SCHEDULER_Task *shutdown_task;
/**
* Testing result
GNUNET_SCHEDULER_shutdown ();
}
+
/**
* Controller event callback
*
shutdown_task = GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);
}
break;
+
case GNUNET_TESTBED_ET_OPERATION_FINISHED:
GNUNET_assert (NULL != event->details.operation_finished.emsg);
break;
+
default:
GNUNET_break (0);
if ((GNUNET_TESTBED_ET_OPERATION_FINISHED == event->type) &&
GNUNET_TESTBED_TOPOLOGY_OPTION_END);
GNUNET_assert (NULL != op);
shutdown_task =
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
+ GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 300),
- do_shutdown, NULL);
+ do_shutdown, NULL);
}
return 0;
}
+
/* end of test_testbed_api_topology.c */