goldfish_switch.c | 34 uint32_t (*writefn)(void *opaque, uint32_t state); member in struct:switch_state 73 return s->writefn ? SW_FLAGS_OUTPUT : 0; 101 if(s->writefn) { 103 new_state = s->writefn(s->writeopaque, value); 145 void *goldfish_switch_add(char *name, uint32_t (*writefn)(void *opaque, uint32_t state), void *writeopaque, int id) 156 s->writefn = writefn;
|