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_twocalls.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_twocalls.c')
-rw-r--r-- | src/conversation/test_conversation_api_twocalls.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/conversation/test_conversation_api_twocalls.c b/src/conversation/test_conversation_api_twocalls.c index 5d7e56d95..17a12eb4f 100644 --- a/src/conversation/test_conversation_api_twocalls.c +++ b/src/conversation/test_conversation_api_twocalls.c | |||
@@ -124,8 +124,7 @@ static struct MicContext call2_mic_ctx; | |||
124 | 124 | ||
125 | 125 | ||
126 | static void | 126 | static void |
127 | phone_send (void *cls, | 127 | phone_send (void *cls) |
128 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
129 | { | 128 | { |
130 | char buf[32]; | 129 | char buf[32]; |
131 | 130 | ||
@@ -138,8 +137,7 @@ phone_send (void *cls, | |||
138 | 137 | ||
139 | 138 | ||
140 | static void | 139 | static void |
141 | call_send (void *cls, | 140 | call_send (void *cls) |
142 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
143 | { | 141 | { |
144 | struct MicContext *mc = cls; | 142 | struct MicContext *mc = cls; |
145 | char buf[32]; | 143 | char buf[32]; |
@@ -343,10 +341,9 @@ static struct GNUNET_MICROPHONE_Handle phone_mic = { | |||
343 | * Signature of the main function of a task. | 341 | * Signature of the main function of a task. |
344 | * | 342 | * |
345 | * @param cls closure | 343 | * @param cls closure |
346 | * @param tc context information (why was this task triggered now) | ||
347 | */ | 344 | */ |
348 | static void | 345 | static void |
349 | end_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 346 | end_test (void *cls) |
350 | { | 347 | { |
351 | GNUNET_SCHEDULER_shutdown (); | 348 | GNUNET_SCHEDULER_shutdown (); |
352 | if (NULL != op) | 349 | if (NULL != op) |