diff options
author | Max Kellermann <max@duempel.org> | 2011-08-25 18:31:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-08-25 18:43:14 +0200 |
commit | 635f7026b0406fc127719ca50cd6dee4232e6bd1 (patch) | |
tree | 31b8fe555c447bbba23a695f0b596cab194b99bd /src/io_thread.h | |
parent | 0f1e4f032611ffc92ecb5abed53b000da9aa09d7 (diff) | |
download | mpd-635f7026b0406fc127719ca50cd6dee4232e6bd1.tar.gz mpd-635f7026b0406fc127719ca50cd6dee4232e6bd1.tar.xz mpd-635f7026b0406fc127719ca50cd6dee4232e6bd1.zip |
io_thread: add helper functions
Diffstat (limited to 'src/io_thread.h')
-rw-r--r-- | src/io_thread.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/io_thread.h b/src/io_thread.h index 53b32f61f..2daddba86 100644 --- a/src/io_thread.h +++ b/src/io_thread.h @@ -36,4 +36,17 @@ G_GNUC_PURE GMainContext * io_thread_context(void); +guint +io_thread_idle_add(GSourceFunc function, gpointer data); + +guint +io_thread_timeout_add_seconds(guint interval, + GSourceFunc function, gpointer data); + +/** + * Call a function synchronously in the I/O thread. + */ +gpointer +io_thread_call(GThreadFunc function, gpointer data); + #endif |