summaryrefslogtreecommitdiffstats
path: root/bus/loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'bus/loop.h')
-rw-r--r--bus/loop.h34
1 files changed, 22 insertions, 12 deletions
diff --git a/bus/loop.h b/bus/loop.h
index e2b5e50a..cd49865c 100644
--- a/bus/loop.h
+++ b/bus/loop.h
@@ -26,19 +26,29 @@
#include <dbus/dbus.h>
-typedef void (* BusWatchFunction) (DBusWatch *watch,
- unsigned int condition,
- void *data);
+typedef void (* BusWatchFunction) (DBusWatch *watch,
+ unsigned int condition,
+ void *data);
+typedef void (* BusTimeoutFunction) (DBusTimeout *timeout,
+ void *data);
+
+dbus_bool_t bus_loop_add_watch (DBusWatch *watch,
+ BusWatchFunction function,
+ void *data,
+ DBusFreeFunction free_data_func);
+void bus_loop_remove_watch (DBusWatch *watch,
+ BusWatchFunction function,
+ void *data);
+dbus_bool_t bus_loop_add_timeout (DBusTimeout *timeout,
+ BusTimeoutFunction function,
+ void *data,
+ DBusFreeFunction free_data_func);
+void bus_loop_remove_timeout (DBusTimeout *timeout,
+ BusTimeoutFunction function,
+ void *data);
+void bus_loop_run (void);
+void bus_loop_quit (void);
-dbus_bool_t bus_loop_add_watch (DBusWatch *watch,
- BusWatchFunction function,
- void *data,
- DBusFreeFunction free_data_func);
-void bus_loop_remove_watch (DBusWatch *watch,
- BusWatchFunction function,
- void *data);
-void bus_loop_run (void);
-void bus_loop_quit (void);
#endif /* BUS_LOOP_H */