aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_logger_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/testbed/testbed_logger_api.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/testbed/testbed_logger_api.c')
-rw-r--r--src/testbed/testbed_logger_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testbed/testbed_logger_api.c b/src/testbed/testbed_logger_api.c
index ca6bc354e..aa182e21c 100644
--- a/src/testbed/testbed_logger_api.c
+++ b/src/testbed/testbed_logger_api.c
@@ -170,10 +170,9 @@ cancel_timeout_flush (struct GNUNET_TESTBED_LOGGER_Handle *h)
170 * Task to call the flush completion notification 170 * Task to call the flush completion notification
171 * 171 *
172 * @param cls the logger handle 172 * @param cls the logger handle
173 * @param tc the scheduler task context
174 */ 173 */
175static void 174static void
176call_flush_completion (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 175call_flush_completion (void *cls)
177{ 176{
178 struct GNUNET_TESTBED_LOGGER_Handle *h = cls; 177 struct GNUNET_TESTBED_LOGGER_Handle *h = cls;
179 GNUNET_TESTBED_LOGGER_FlushCompletion cb; 178 GNUNET_TESTBED_LOGGER_FlushCompletion cb;
@@ -416,10 +415,9 @@ GNUNET_TESTBED_LOGGER_write (struct GNUNET_TESTBED_LOGGER_Handle *h,
416 * be called with 0 as the amount of data sent. 415 * be called with 0 as the amount of data sent.
417 * 416 *
418 * @param cls the logger handle 417 * @param cls the logger handle
419 * @param tc scheduler task context
420 */ 418 */
421static void 419static void
422timeout_flush (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 420timeout_flush (void *cls)
423{ 421{
424 struct GNUNET_TESTBED_LOGGER_Handle *h = cls; 422 struct GNUNET_TESTBED_LOGGER_Handle *h = cls;
425 GNUNET_TESTBED_LOGGER_FlushCompletion cb; 423 GNUNET_TESTBED_LOGGER_FlushCompletion cb;