diff options
Diffstat (limited to '')
-rw-r--r-- | src/IOThread.hxx (renamed from src/io_thread.h) | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/src/io_thread.h b/src/IOThread.hxx index 8ff5a71e5..a9401dc7f 100644 --- a/src/io_thread.h +++ b/src/IOThread.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,11 +17,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_IO_THREAD_H -#define MPD_IO_THREAD_H +#ifndef MPD_IO_THREAD_HXX +#define MPD_IO_THREAD_HXX + +#include "gcc.h" #include <glib.h> -#include <stdbool.h> + +class EventLoop; void io_thread_init(void); @@ -48,29 +51,17 @@ io_thread_quit(void); void io_thread_deinit(void); -G_GNUC_PURE -GMainContext * -io_thread_context(void); +gcc_pure +EventLoop & +io_thread_get(); /** * Is the current thread the I/O thread? */ -G_GNUC_PURE +gcc_pure bool io_thread_inside(void); -guint -io_thread_idle_add(GSourceFunc function, gpointer data); - -G_GNUC_MALLOC -GSource * -io_thread_timeout_add(guint interval_ms, GSourceFunc function, gpointer data); - -G_GNUC_MALLOC -GSource * -io_thread_timeout_add_seconds(guint interval, - GSourceFunc function, gpointer data); - /** * Call a function synchronously in the I/O thread. */ |