diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:09 +0000 |
commit | b25fa8589635010a74304dbca9678a3ca5cdfd7d (patch) | |
tree | 6ddc20fdc8b5c9158af3a60910f02040b877628c /src/main | |
parent | b2f918a9a4fb089772cf4cc6eec0dc1f96bb3f09 (diff) | |
download | gnunet-gtk-b25fa8589635010a74304dbca9678a3ca5cdfd7d.tar.gz gnunet-gtk-b25fa8589635010a74304dbca9678a3ca5cdfd7d.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/main')
-rw-r--r-- | src/main/gnunet-gtk.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main/gnunet-gtk.c b/src/main/gnunet-gtk.c index 01b27a62..8d01a718 100644 --- a/src/main/gnunet-gtk.c +++ b/src/main/gnunet-gtk.c | |||
@@ -127,11 +127,9 @@ get_object (const char *name) | |||
127 | * Actual main to tear down the system. | 127 | * Actual main to tear down the system. |
128 | * | 128 | * |
129 | * @param cls the main loop handle | 129 | * @param cls the main loop handle |
130 | * @param tc scheduler context | ||
131 | */ | 130 | */ |
132 | static void | 131 | static void |
133 | cleanup_task (void *cls, | 132 | cleanup_task (void *cls) |
134 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
135 | { | 133 | { |
136 | struct Plug *p; | 134 | struct Plug *p; |
137 | 135 | ||
@@ -213,11 +211,9 @@ start_process (struct Plug *p) | |||
213 | * Restart crashed plugin process. | 211 | * Restart crashed plugin process. |
214 | * | 212 | * |
215 | * @param cls the `struct Plug` of the plugin | 213 | * @param cls the `struct Plug` of the plugin |
216 | * @param tc scheduler context | ||
217 | */ | 214 | */ |
218 | static void | 215 | static void |
219 | restart_process (void *cls, | 216 | restart_process (void *cls) |
220 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
221 | { | 217 | { |
222 | struct Plug *p = cls; | 218 | struct Plug *p = cls; |
223 | 219 | ||
@@ -307,11 +303,9 @@ plug (const char *container, | |||
307 | * Actual main method that sets up the configuration window. | 303 | * Actual main method that sets up the configuration window. |
308 | * | 304 | * |
309 | * @param cls the main loop handle | 305 | * @param cls the main loop handle |
310 | * @param tc scheduler context | ||
311 | */ | 306 | */ |
312 | static void | 307 | static void |
313 | run (void *cls, | 308 | run (void *cls) |
314 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
315 | { | 309 | { |
316 | GtkWidget *main_window; | 310 | GtkWidget *main_window; |
317 | 311 | ||