static void *on_readable(oop_source *oop, oop_readable *ra, void *rd_void) { oop_read *rd= rd_void; assert(oop == rd->oop); assert(ra == rd->ra); return on_process(oop,rd,1); }
static void *on_time(oop_source *oop, struct timeval when, void *rd_void) { oop_read *rd= rd_void; assert(oop == rd->oop); return on_process(oop,rd,0); }
//! Do standard event loop void video::main_loop() { struct timezone tz; gettimeofday(&g_time, &tz); on_process(); }
//! Do standard loop void video::main_loop() { on_process(); }