diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-10 17:06:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-10 17:06:30 +0000 |
| commit | 85112c4d0831067251de1295fbb6974db94af2ba (patch) | |
| tree | 488bae2036bad327337b90018c87f3054e7803d9 /openbox/timer.h | |
| parent | 122d55fbadea0409fbc902a1740e1c8ff3aecd88 (diff) | |
prefix the Timer->ObTimer and TimeoutHandler->ObTimeoutHandler shitz
Diffstat (limited to 'openbox/timer.h')
| -rw-r--r-- | openbox/timer.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/openbox/timer.h b/openbox/timer.h index e50ffa8c..549490c5 100644 --- a/openbox/timer.h +++ b/openbox/timer.h @@ -3,14 +3,17 @@ #include <glib.h> +typedef struct _ObTimer ObTimer; + /*! Data type of Timer callback */ -typedef void (*TimeoutHandler)(void *data); +typedef void (*ObTimeoutHandler)(void *data); -typedef struct Timer { +struct _ObTimer +{ /*! Microseconds between timer firings */ long delay; /*! Callback for timer expiry */ - TimeoutHandler action; + ObTimeoutHandler action; /*! Data sent to callback */ void *data; /*! We overload the delete operator to just set this to true */ @@ -19,7 +22,7 @@ typedef struct Timer { GTimeVal last; /*! When this timer will next trigger */ GTimeVal timeout; -} Timer; +}; /*! Initializes the timer subsection */ void timer_startup(); @@ -27,9 +30,9 @@ void timer_startup(); void timer_shutdown(); /* Creates a new timer with a given delay */ -Timer *timer_start(long delay, TimeoutHandler cb, void *data); +ObTimer *timer_start(long delay, ObTimeoutHandler cb, void *data); /* Stops and frees a timer */ -void timer_stop(Timer *self); +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 */ |
