diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/conversation/test_conversation_api.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-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/conversation/test_conversation_api.c')
-rw-r--r-- | src/conversation/test_conversation_api.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/conversation/test_conversation_api.c b/src/conversation/test_conversation_api.c index 317818c8e..f8159115b 100644 --- a/src/conversation/test_conversation_api.c +++ b/src/conversation/test_conversation_api.c | |||
@@ -73,8 +73,7 @@ static struct GNUNET_SCHEDULER_Task * call_task; | |||
73 | 73 | ||
74 | 74 | ||
75 | static void | 75 | static void |
76 | phone_send (void *cls, | 76 | phone_send (void *cls) |
77 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
78 | { | 77 | { |
79 | static unsigned int i; | 78 | static unsigned int i; |
80 | char buf[32]; | 79 | char buf[32]; |
@@ -88,8 +87,7 @@ phone_send (void *cls, | |||
88 | 87 | ||
89 | 88 | ||
90 | static void | 89 | static void |
91 | call_send (void *cls, | 90 | call_send (void *cls) |
92 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
93 | { | 91 | { |
94 | static unsigned int i; | 92 | static unsigned int i; |
95 | char buf[32]; | 93 | char buf[32]; |
@@ -272,10 +270,9 @@ static struct GNUNET_MICROPHONE_Handle phone_mic = { | |||
272 | * Signature of the main function of a task. | 270 | * Signature of the main function of a task. |
273 | * | 271 | * |
274 | * @param cls closure | 272 | * @param cls closure |
275 | * @param tc context information (why was this task triggered now) | ||
276 | */ | 273 | */ |
277 | static void | 274 | static void |
278 | end_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 275 | end_test (void *cls) |
279 | { | 276 | { |
280 | GNUNET_SCHEDULER_shutdown (); | 277 | GNUNET_SCHEDULER_shutdown (); |
281 | if (NULL != op) | 278 | if (NULL != op) |