]>
Dogcows Code - chaz/openbox/blob - openbox/timer.h
6 /*! Data type of Timer callback */
7 typedef void (*TimeoutHandler
)(void *data
);
10 /*! Milliseconds between timer firings */
12 /*! Callback for timer expiry */
13 TimeoutHandler action
;
14 /*! Data sent to callback */
16 /*! We overload the delete operator to just set this to true */
18 /*! The time the last fire should've been at */
20 /*! When this timer will next trigger */
24 /*! Initializes the timer subsection */
26 /*! Destroys the timer subsection */
27 void timer_shutdown();
29 /* Creates a new timer with a given delay */
30 Timer
*timer_start(long delay
, TimeoutHandler cb
, void *data
);
31 /* Stops and frees a timer */
32 void timer_stop(Timer
*self
);
34 /*! Dispatch all pending timers. Sets wait to the amount of time to wait for
35 the next timer, or NULL if there are no timers to wait for */
36 void timer_dispatch(GTimeVal
**wait
);
This page took 0.033225 seconds and 4 git commands to generate.