summaryrefslogtreecommitdiff
path: root/openbox/timer.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-08-30 07:20:16 +0000
committerDana Jansens <danakj@orodu.net>2003-08-30 07:20:16 +0000
commitde4f92ccc66c1dad1a2820a07d1f0161bd61a855 (patch)
tree6e782bca4561b33808d7b96c5df77895093ee3b3 /openbox/timer.h
parent952ca245714e334090ea6baced5eb75d06f99e18 (diff)
using the ObMainLoop, which rulz the planet
Diffstat (limited to 'openbox/timer.h')
-rw-r--r--openbox/timer.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/openbox/timer.h b/openbox/timer.h
deleted file mode 100644
index aa26c986..00000000
--- a/openbox/timer.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef __timer_h
-#define __timer_h
-
-#include <glib.h>
-
-typedef struct _ObTimer ObTimer;
-
-/*! Data type of Timer callback */
-typedef void (*ObTimeoutHandler)(ObTimer *t, void *data);
-
-struct _ObTimer
-{
- /*! Microseconds between timer firings */
- long delay;
- /*! Callback for timer expiry */
- ObTimeoutHandler action;
- /*! Data sent to callback */
- void *data;
- /*! We overload the delete operator to just set this to true */
- gboolean del_me;
- /*! The time the last fire should've been at */
- GTimeVal last;
- /*! When this timer will next trigger */
- GTimeVal timeout;
-};
-
-/*! Initializes the timer subsection */
-void timer_startup();
-/*! Destroys the timer subsection */
-void timer_shutdown();
-
-/* Creates a new timer with a given delay */
-ObTimer *timer_start(long delay, ObTimeoutHandler cb, void *data);
-/* Stops and frees a timer */
-void timer_stop(ObTimer *self);
-
-/*! Dispatch all pending timers. Sets wait to the amount of time to wait for
- the next timer, or NULL if there are no timers to wait for */
-void timer_dispatch(GTimeVal **wait);
-
-#endif