summaryrefslogtreecommitdiff
path: root/gio/gioscheduler.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2008-01-25 14:40:54 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-01-25 14:40:54 +0000
commit8228f7f94bb33a27273d9e517e6bb52b2c1cf130 (patch)
tree861612b2eec7209f7a38a6a4a5be1a1c998f2448 /gio/gioscheduler.h
parent06d957d95d5a51d6c9254c0753132091c6fa49a8 (diff)
downloadglib-8228f7f94bb33a27273d9e517e6bb52b2c1cf130.tar.gz
Make GIOSchedulerJobFunc return boolean Keep calling io jobs until they
2008-01-25 Matthias Clasen <mclasen@redhat.com> * gioscheduler.h: Make GIOSchedulerJobFunc return boolean * gioscheduler.c: Keep calling io jobs until they return FALSE; this allows big jobs to be executed in chunks, instead of blocking the main loop for a long time. * gsimpleasyncresult.c: * giofile.c: Adapt callers. svn path=/trunk/; revision=6375
Diffstat (limited to 'gio/gioscheduler.h')
-rw-r--r--gio/gioscheduler.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gio/gioscheduler.h b/gio/gioscheduler.h
index c33cee8fe..03c7f94f0 100644
--- a/gio/gioscheduler.h
+++ b/gio/gioscheduler.h
@@ -53,10 +53,13 @@ typedef struct _GIOSchedulerJob GIOSchedulerJob;
*
* Long-running jobs should periodically check the @cancellable
* to see if they have been cancelled.
+ *
+ * Returns: %TRUE if this function should be called again to
+ * complete the job, %FALSE if the job is complete (or cancelled)
**/
-typedef void (*GIOSchedulerJobFunc) (GIOSchedulerJob *job,
- GCancellable *cancellable,
- gpointer user_data);
+typedef gboolean (*GIOSchedulerJobFunc) (GIOSchedulerJob *job,
+ GCancellable *cancellable,
+ gpointer user_data);
void g_io_scheduler_push_job (GIOSchedulerJobFunc job_func,
gpointer user_data,