diff options
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r-- | src/include/gnunet_scheduler_lib.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h index e93eab41f..d9b63775a 100644 --- a/src/include/gnunet_scheduler_lib.h +++ b/src/include/gnunet_scheduler_lib.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | Copyright (C) 2009-2015 GNUnet e.V. | 3 | Copyright (C) 2009-2016 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -131,8 +131,7 @@ struct GNUNET_SCHEDULER_TaskContext | |||
131 | * @param tc context information (why was this task triggered now) | 131 | * @param tc context information (why was this task triggered now) |
132 | */ | 132 | */ |
133 | typedef void | 133 | typedef void |
134 | (*GNUNET_SCHEDULER_TaskCallback) (void *cls, | 134 | (*GNUNET_SCHEDULER_TaskCallback) (void *cls); |
135 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
136 | 135 | ||
137 | 136 | ||
138 | /** | 137 | /** |
@@ -200,14 +199,13 @@ GNUNET_SCHEDULER_get_load (enum GNUNET_SCHEDULER_Priority p); | |||
200 | 199 | ||
201 | 200 | ||
202 | /** | 201 | /** |
203 | * Obtain the reason code for why the current task was | 202 | * Obtain the reasoning why the current task was |
204 | * started. Will return the same value as | 203 | * started. |
205 | * the GNUNET_SCHEDULER_TaskContext's reason field. | ||
206 | * | 204 | * |
207 | * @return reason(s) why the current task is run | 205 | * @return task context with information why the current task is run |
208 | */ | 206 | */ |
209 | enum GNUNET_SCHEDULER_Reason | 207 | const struct GNUNET_SCHEDULER_TaskContext * |
210 | GNUNET_SCHEDULER_get_reason (void); | 208 | GNUNET_SCHEDULER_get_task_context (void); |
211 | 209 | ||
212 | 210 | ||
213 | /** | 211 | /** |