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/namestore/gnunet-namestore-gtk.c | |
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/namestore/gnunet-namestore-gtk.c')
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index 20da0446..7f686086 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -2591,11 +2591,9 @@ gnunet_namestore_gtk_zone_combobox_changed_cb (GtkComboBox *widget, | |||
2591 | * Actual main to tear down the system. | 2591 | * Actual main to tear down the system. |
2592 | * | 2592 | * |
2593 | * @param cls the main loop handle | 2593 | * @param cls the main loop handle |
2594 | * @param tc scheduler context | ||
2595 | */ | 2594 | */ |
2596 | static void | 2595 | static void |
2597 | cleanup_task (void *cls, | 2596 | cleanup_task (void *cls) |
2598 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
2599 | { | 2597 | { |
2600 | struct OperationContext *oc; | 2598 | struct OperationContext *oc; |
2601 | struct MoveOperationContext *moc; | 2599 | struct MoveOperationContext *moc; |
@@ -2775,11 +2773,9 @@ identity_cb (void *cls, | |||
2775 | * Actual main method that sets up the configuration window. | 2773 | * Actual main method that sets up the configuration window. |
2776 | * | 2774 | * |
2777 | * @param cls the main loop handle | 2775 | * @param cls the main loop handle |
2778 | * @param tc scheduler context | ||
2779 | */ | 2776 | */ |
2780 | static void | 2777 | static void |
2781 | run (void *cls, | 2778 | run (void *cls) |
2782 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
2783 | { | 2779 | { |
2784 | gchar *label; | 2780 | gchar *label; |
2785 | GtkLabel *status_label; | 2781 | GtkLabel *status_label; |