Lines Matching refs:timer
164 SpiceTimer *timer = (SpiceTimer*)arg;
166 timer->func(timer->opaque);
172 SpiceTimer *timer = calloc(sizeof(SpiceTimer), 1);
174 timer->func = func;
175 timer->opaque = opaque;
176 return timer;
179 static void timer_start(SpiceTimer *timer, uint32_t ms)
181 timer->xorg_timer = TimerSet(timer->xorg_timer, 0 /* flags */,
182 ms, xorg_timer_callback, timer);
185 static void timer_cancel(SpiceTimer *timer)
187 TimerCancel(timer->xorg_timer);
190 static void timer_remove(SpiceTimer *timer)
192 TimerFree(timer->xorg_timer);
193 free(timer);