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/transport/plugin_transport_wlan.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/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 6e23299b9..9c9c1e8c2 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -828,11 +828,9 @@ wlan_plugin_query_keepalive_factor (void *cls) | |||
828 | * A session is timing out. Clean up. | 828 | * A session is timing out. Clean up. |
829 | * | 829 | * |
830 | * @param cls pointer to the Session | 830 | * @param cls pointer to the Session |
831 | * @param tc unused | ||
832 | */ | 831 | */ |
833 | static void | 832 | static void |
834 | session_timeout (void *cls, | 833 | session_timeout (void *cls) |
835 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
836 | { | 834 | { |
837 | struct GNUNET_ATS_Session *session = cls; | 835 | struct GNUNET_ATS_Session *session = cls; |
838 | struct GNUNET_TIME_Relative left; | 836 | struct GNUNET_TIME_Relative left; |
@@ -1072,11 +1070,9 @@ free_fragment_message (struct FragmentMessage *fm) | |||
1072 | * A FragmentMessage has timed out. Remove it. | 1070 | * A FragmentMessage has timed out. Remove it. |
1073 | * | 1071 | * |
1074 | * @param cls pointer to the 'struct FragmentMessage' | 1072 | * @param cls pointer to the 'struct FragmentMessage' |
1075 | * @param tc unused | ||
1076 | */ | 1073 | */ |
1077 | static void | 1074 | static void |
1078 | fragmentmessage_timeout (void *cls, | 1075 | fragmentmessage_timeout (void *cls) |
1079 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1080 | { | 1076 | { |
1081 | struct FragmentMessage *fm = cls; | 1077 | struct FragmentMessage *fm = cls; |
1082 | 1078 | ||
@@ -1200,11 +1196,9 @@ free_macendpoint (struct MacEndpoint *endpoint) | |||
1200 | * A MAC endpoint is timing out. Clean up. | 1196 | * A MAC endpoint is timing out. Clean up. |
1201 | * | 1197 | * |
1202 | * @param cls pointer to the `struct MacEndpoint *` | 1198 | * @param cls pointer to the `struct MacEndpoint *` |
1203 | * @param tc pointer to the GNUNET_SCHEDULER_TaskContext | ||
1204 | */ | 1199 | */ |
1205 | static void | 1200 | static void |
1206 | macendpoint_timeout (void *cls, | 1201 | macendpoint_timeout (void *cls) |
1207 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1208 | { | 1202 | { |
1209 | struct MacEndpoint *endpoint = cls; | 1203 | struct MacEndpoint *endpoint = cls; |
1210 | struct GNUNET_TIME_Relative timeout; | 1204 | struct GNUNET_TIME_Relative timeout; |
@@ -1681,11 +1675,9 @@ process_data (void *cls, | |||
1681 | * Task to (periodically) send a HELLO beacon | 1675 | * Task to (periodically) send a HELLO beacon |
1682 | * | 1676 | * |
1683 | * @param cls pointer to the plugin struct | 1677 | * @param cls pointer to the plugin struct |
1684 | * @param tc scheduler context | ||
1685 | */ | 1678 | */ |
1686 | static void | 1679 | static void |
1687 | send_hello_beacon (void *cls, | 1680 | send_hello_beacon (void *cls) |
1688 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1689 | { | 1681 | { |
1690 | struct Plugin *plugin = cls; | 1682 | struct Plugin *plugin = cls; |
1691 | uint16_t size; | 1683 | uint16_t size; |