]> Dogcows Code - chaz/openbox/blobdiff - openbox/timer.h
prefix the Timer->ObTimer and TimeoutHandler->ObTimeoutHandler shitz
[chaz/openbox] / openbox / timer.h
index e50ffa8cf02f8db5a32b3d2ab5a4b642d1ca391b..549490c574be3fb221a3ab41726699d96735024f 100644 (file)
@@ -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 */
This page took 0.021787 seconds and 4 git commands to generate.