1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
6 static void timer_done(Name *n) {
12 static NameActiveState timer_active_state(Name *n) {
14 static const NameActiveState table[_TIMER_STATE_MAX] = {
15 [TIMER_DEAD] = NAME_INACTIVE,
16 [TIMER_WAITING] = NAME_ACTIVE,
17 [TIMER_RUNNING] = NAME_ACTIVE
20 return table[TIMER(n)->state];
23 const NameVTable timer_vtable = {
26 .init = name_load_fragment_and_dropin,
29 .active_state = timer_active_state