aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/gnunet-fs-gtk.h2
-rw-r--r--src/fs/gnunet-fs-gtk_main-window-search.c6
-rw-r--r--src/fs/gnunet-fs-gtk_publish-dialog.c10
-rw-r--r--src/include/gnunet_gtk.h2
-rw-r--r--src/lib/animations.c6
-rw-r--r--src/lib/eventloop.c10
-rw-r--r--src/main/gnunet-gtk.c8
-rw-r--r--src/setup/gnunet-setup-transport.c4
-rw-r--r--src/statistics/gnunet-statistics-gtk.c6
9 files changed, 27 insertions, 27 deletions
diff --git a/src/fs/gnunet-fs-gtk.h b/src/fs/gnunet-fs-gtk.h
index 20a564db..3aab6f34 100644
--- a/src/fs/gnunet-fs-gtk.h
+++ b/src/fs/gnunet-fs-gtk.h
@@ -63,7 +63,7 @@ struct SearchLookup
63 /** 63 /**
64 * Task to trigger timeout. 64 * Task to trigger timeout.
65 */ 65 */
66 GNUNET_SCHEDULER_TaskIdentifier timeout_task; 66 struct GNUNET_SCHEDULER_Task * timeout_task;
67 67
68 /** 68 /**
69 * Desired anonymity level. 69 * Desired anonymity level.
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c b/src/fs/gnunet-fs-gtk_main-window-search.c
index cf481166..4944168d 100644
--- a/src/fs/gnunet-fs-gtk_main-window-search.c
+++ b/src/fs/gnunet-fs-gtk_main-window-search.c
@@ -64,10 +64,10 @@ abort_search_lookup (struct SearchLookup *sl)
64 GNUNET_CONTAINER_DLL_remove (main_ctx->sl_head, 64 GNUNET_CONTAINER_DLL_remove (main_ctx->sl_head,
65 main_ctx->sl_tail, 65 main_ctx->sl_tail,
66 sl); 66 sl);
67 if (GNUNET_SCHEDULER_NO_TASK != sl->timeout_task) 67 if (NULL != sl->timeout_task)
68 { 68 {
69 GNUNET_SCHEDULER_cancel (sl->timeout_task); 69 GNUNET_SCHEDULER_cancel (sl->timeout_task);
70 sl->timeout_task = GNUNET_SCHEDULER_NO_TASK; 70 sl->timeout_task = NULL;
71 } 71 }
72 if (NULL != sl->gns) 72 if (NULL != sl->gns)
73 { 73 {
@@ -92,7 +92,7 @@ timeout_search_lookup (void *cls,
92{ 92{
93 struct SearchLookup *sl = cls; 93 struct SearchLookup *sl = cls;
94 94
95 sl->timeout_task = GNUNET_SCHEDULER_NO_TASK; 95 sl->timeout_task = NULL;
96 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 96 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
97 _("Failed to resolve namespace in time\n")); 97 _("Failed to resolve namespace in time\n"));
98 abort_search_lookup (sl); 98 abort_search_lookup (sl);
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c
index 84564a91..2e628969 100644
--- a/src/fs/gnunet-fs-gtk_publish-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-dialog.c
@@ -384,7 +384,7 @@ struct AddDirClientContext
384 /** 384 /**
385 * Task scheduled to stop the scanner on errors. 385 * Task scheduled to stop the scanner on errors.
386 */ 386 */
387 GNUNET_SCHEDULER_TaskIdentifier kill_task; 387 struct GNUNET_SCHEDULER_Task * kill_task;
388 388
389 /** 389 /**
390 * Default options to use for sharing when adding files during the scan. 390 * Default options to use for sharing when adding files during the scan.
@@ -1258,10 +1258,10 @@ static void
1258destroy_progress_dialog (struct AddDirClientContext *adcc) 1258destroy_progress_dialog (struct AddDirClientContext *adcc)
1259{ 1259{
1260 GNUNET_assert (NULL == adcc->ds); 1260 GNUNET_assert (NULL == adcc->ds);
1261 if (GNUNET_SCHEDULER_NO_TASK != adcc->kill_task) 1261 if (NULL != adcc->kill_task)
1262 { 1262 {
1263 GNUNET_SCHEDULER_cancel (adcc->kill_task); 1263 GNUNET_SCHEDULER_cancel (adcc->kill_task);
1264 adcc->kill_task = GNUNET_SCHEDULER_NO_TASK; 1264 adcc->kill_task = NULL;
1265 } 1265 }
1266 gtk_widget_destroy (adcc->progress_dialog); 1266 gtk_widget_destroy (adcc->progress_dialog);
1267 g_object_unref (G_OBJECT (adcc->progress_dialog_builder)); 1267 g_object_unref (G_OBJECT (adcc->progress_dialog_builder));
@@ -1465,7 +1465,7 @@ stop_scanner_task (void *cls,
1465{ 1465{
1466 struct AddDirClientContext *adcc = cls; 1466 struct AddDirClientContext *adcc = cls;
1467 1467
1468 adcc->kill_task = GNUNET_SCHEDULER_NO_TASK; 1468 adcc->kill_task = NULL;
1469 if (NULL != adcc->ds) 1469 if (NULL != adcc->ds)
1470 { 1470 {
1471 GNUNET_FS_directory_scan_abort (adcc->ds); 1471 GNUNET_FS_directory_scan_abort (adcc->ds);
@@ -1562,7 +1562,7 @@ directory_scan_cb (void *cls,
1562 break; 1562 break;
1563 case GNUNET_FS_DIRSCANNER_INTERNAL_ERROR: 1563 case GNUNET_FS_DIRSCANNER_INTERNAL_ERROR:
1564 if ( (NULL != adcc->ds) && 1564 if ( (NULL != adcc->ds) &&
1565 (GNUNET_SCHEDULER_NO_TASK == adcc->kill_task) ) 1565 (NULL == adcc->kill_task) )
1566 { 1566 {
1567 insert_progress_dialog_text (adcc, _("Operation failed (press cancel)\n")); 1567 insert_progress_dialog_text (adcc, _("Operation failed (press cancel)\n"));
1568 adcc->kill_task = GNUNET_SCHEDULER_add_now (&stop_scanner_task, adcc); 1568 adcc->kill_task = GNUNET_SCHEDULER_add_now (&stop_scanner_task, adcc);
diff --git a/src/include/gnunet_gtk.h b/src/include/gnunet_gtk.h
index 0919671a..c793feea 100644
--- a/src/include/gnunet_gtk.h
+++ b/src/include/gnunet_gtk.h
@@ -246,7 +246,7 @@ GNUNET_GTK_main_loop_start (const char *binary_name,
246 int argc, char *const *argv, 246 int argc, char *const *argv,
247 struct GNUNET_GETOPT_CommandLineOption *options, 247 struct GNUNET_GETOPT_CommandLineOption *options,
248 const char *main_window_file, 248 const char *main_window_file,
249 GNUNET_SCHEDULER_Task main_task); 249 GNUNET_SCHEDULER_TaskCallback main_task);
250 250
251 251
252/** 252/**
diff --git a/src/lib/animations.c b/src/lib/animations.c
index 40f1f1e9..504381fc 100644
--- a/src/lib/animations.c
+++ b/src/lib/animations.c
@@ -121,7 +121,7 @@ static struct GNUNET_GTK_AnimationTreeViewHandle *atv_tail;
121/** 121/**
122 * Task run to update animations. 122 * Task run to update animations.
123 */ 123 */
124static GNUNET_SCHEDULER_TaskIdentifier ticker_task; 124static struct GNUNET_SCHEDULER_Task * ticker_task;
125 125
126 126
127/** 127/**
@@ -305,7 +305,7 @@ GNUNET_GTK_animation_tree_view_register (GtkTreeView *tv,
305 GNUNET_CONTAINER_DLL_insert (atv_head, 305 GNUNET_CONTAINER_DLL_insert (atv_head,
306 atv_tail, 306 atv_tail,
307 atv); 307 atv);
308 if (GNUNET_SCHEDULER_NO_TASK == ticker_task) 308 if (NULL == ticker_task)
309 ticker_task = GNUNET_SCHEDULER_add_delayed (TICKER_DELAY, 309 ticker_task = GNUNET_SCHEDULER_add_delayed (TICKER_DELAY,
310 &ticker, 310 &ticker,
311 NULL); 311 NULL);
@@ -328,7 +328,7 @@ GNUNET_GTK_animation_tree_view_unregister (struct GNUNET_GTK_AnimationTreeViewHa
328 if (NULL != atv_head) 328 if (NULL != atv_head)
329 return; 329 return;
330 GNUNET_SCHEDULER_cancel (ticker_task); 330 GNUNET_SCHEDULER_cancel (ticker_task);
331 ticker_task = GNUNET_SCHEDULER_NO_TASK; 331 ticker_task = NULL;
332} 332}
333 333
334 334
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c
index 1d47f04f..b978a340 100644
--- a/src/lib/eventloop.c
+++ b/src/lib/eventloop.c
@@ -55,7 +55,7 @@ struct GNUNET_GTK_MainLoop
55 /** 55 /**
56 * Initial task to run to setup the system. 56 * Initial task to run to setup the system.
57 */ 57 */
58 GNUNET_SCHEDULER_Task main_task; 58 GNUNET_SCHEDULER_TaskCallback main_task;
59 59
60 /** 60 /**
61 * Builder for the main window. 61 * Builder for the main window.
@@ -100,7 +100,7 @@ struct GNUNET_GTK_MainLoop
100 /** 100 /**
101 * Task we keep around just to keep the event loop running. 101 * Task we keep around just to keep the event loop running.
102 */ 102 */
103 GNUNET_SCHEDULER_TaskIdentifier dummy_task; 103 struct GNUNET_SCHEDULER_Task * dummy_task;
104 104
105 /** 105 /**
106 * Remaining command-line arguments. 106 * Remaining command-line arguments.
@@ -233,10 +233,10 @@ GNUNET_GTK_main_loop_quit (struct GNUNET_GTK_MainLoop *ml)
233{ 233{
234 g_main_loop_quit (ml->gml); 234 g_main_loop_quit (ml->gml);
235 ml->gml = NULL; 235 ml->gml = NULL;
236 if (GNUNET_SCHEDULER_NO_TASK != ml->dummy_task) 236 if (NULL != ml->dummy_task)
237 { 237 {
238 GNUNET_SCHEDULER_cancel (ml->dummy_task); 238 GNUNET_SCHEDULER_cancel (ml->dummy_task);
239 ml->dummy_task = GNUNET_SCHEDULER_NO_TASK; 239 ml->dummy_task = NULL;
240 } 240 }
241} 241}
242 242
@@ -989,7 +989,7 @@ GNUNET_GTK_main_loop_start (const char *binary_name, const char *binary_help,
989 int argc, char *const *argv, 989 int argc, char *const *argv,
990 struct GNUNET_GETOPT_CommandLineOption *options, 990 struct GNUNET_GETOPT_CommandLineOption *options,
991 const char *main_window_file, 991 const char *main_window_file,
992 GNUNET_SCHEDULER_Task main_task) 992 GNUNET_SCHEDULER_TaskCallback main_task)
993{ 993{
994 struct GNUNET_GTK_MainLoop ml; 994 struct GNUNET_GTK_MainLoop ml;
995 int ret; 995 int ret;
diff --git a/src/main/gnunet-gtk.c b/src/main/gnunet-gtk.c
index fa5cf4a6..7ae21757 100644
--- a/src/main/gnunet-gtk.c
+++ b/src/main/gnunet-gtk.c
@@ -72,7 +72,7 @@ struct Plug
72 /** 72 /**
73 * Task to restart process after crash. 73 * Task to restart process after crash.
74 */ 74 */
75 GNUNET_SCHEDULER_TaskIdentifier restart_task; 75 struct GNUNET_SCHEDULER_Task * restart_task;
76 76
77 /** 77 /**
78 * ID of the signal associated with the window. 78 * ID of the signal associated with the window.
@@ -145,10 +145,10 @@ cleanup_task (void *cls,
145 GNUNET_OS_process_destroy (p->proc); 145 GNUNET_OS_process_destroy (p->proc);
146 p->proc = NULL; 146 p->proc = NULL;
147 } 147 }
148 if (GNUNET_SCHEDULER_NO_TASK != p->restart_task) 148 if (NULL != p->restart_task)
149 { 149 {
150 GNUNET_SCHEDULER_cancel (p->restart_task); 150 GNUNET_SCHEDULER_cancel (p->restart_task);
151 p->restart_task = GNUNET_SCHEDULER_NO_TASK; 151 p->restart_task = NULL;
152 } 152 }
153 /* This object is long gone, as part of the cleanup 153 /* This object is long gone, as part of the cleanup
154 of the window from gtk_window_dispose that is 154 of the window from gtk_window_dispose that is
@@ -224,7 +224,7 @@ restart_process (void *cls,
224 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 224 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
225 _("Restarting crashed plugin `%s'\n"), 225 _("Restarting crashed plugin `%s'\n"),
226 p->binary); 226 p->binary);
227 p->restart_task = GNUNET_SCHEDULER_NO_TASK; 227 p->restart_task = NULL;
228 start_process (p); 228 start_process (p);
229} 229}
230 230
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index 9168683d..be7f8c7d 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -122,7 +122,7 @@ struct GNUNET_SetupAutoContext
122 /** 122 /**
123 * Task identifier for the timeout. 123 * Task identifier for the timeout.
124 */ 124 */
125 GNUNET_SCHEDULER_TaskIdentifier tsk; 125 struct GNUNET_SCHEDULER_Task * tsk;
126 126
127 /** 127 /**
128 * Where are we in the test? 128 * Where are we in the test?
@@ -175,7 +175,7 @@ result_callback (void *cls,
175 struct GNUNET_SetupAutoContext *ac = cls; 175 struct GNUNET_SetupAutoContext *ac = cls;
176 176
177 GNUNET_SCHEDULER_cancel (ac->tsk); 177 GNUNET_SCHEDULER_cancel (ac->tsk);
178 ac->tsk = GNUNET_SCHEDULER_NO_TASK; 178 ac->tsk = NULL;
179 GNUNET_NAT_test_stop (ac->tst); 179 GNUNET_NAT_test_stop (ac->tst);
180 ac->tst = NULL; 180 ac->tst = NULL;
181 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 181 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
diff --git a/src/statistics/gnunet-statistics-gtk.c b/src/statistics/gnunet-statistics-gtk.c
index a53f0b74..4308653c 100644
--- a/src/statistics/gnunet-statistics-gtk.c
+++ b/src/statistics/gnunet-statistics-gtk.c
@@ -121,7 +121,7 @@ static struct GNUNET_STATISTICS_Handle *statistics;
121/** 121/**
122 * Task that refreshes connection graphic. 122 * Task that refreshes connection graphic.
123 */ 123 */
124static GNUNET_SCHEDULER_TaskIdentifier connection_task; 124static struct GNUNET_SCHEDULER_Task * connection_task;
125 125
126/** 126/**
127 * When did this process start? 127 * When did this process start?
@@ -213,10 +213,10 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
213 ml = NULL; 213 ml = NULL;
214 GNUNET_STATISTICS_destroy (statistics, GNUNET_NO); 214 GNUNET_STATISTICS_destroy (statistics, GNUNET_NO);
215 statistics = NULL; 215 statistics = NULL;
216 if (connection_task != GNUNET_SCHEDULER_NO_TASK) 216 if (connection_task != NULL)
217 { 217 {
218 GNUNET_SCHEDULER_cancel (connection_task); 218 GNUNET_SCHEDULER_cancel (connection_task);
219 connection_task = GNUNET_SCHEDULER_NO_TASK; 219 connection_task = NULL;
220 } 220 }
221} 221}
222 222