static void dvr_notify(dvr_entry_t *de, int now) { if (now || de->de_last_notify + 5 < dispatch_clock) { idnode_notify_simple(&de->de_id); de->de_last_notify = dispatch_clock; } }
static void dvr_rec_set_state(dvr_entry_t *de, dvr_rs_state_t newstate, int error) { int notify = 0; if(de->de_rec_state != newstate) { de->de_rec_state = newstate; notify = 1; } if(de->de_last_error != error) { de->de_last_error = error; notify = 1; if(error) de->de_errors++; } if (notify) idnode_notify_simple(&de->de_id); }
/* Notify */ static void mpegts_network_scan_notify ( mpegts_mux_t *mm ) { idnode_notify_simple(&mm->mm_id); idnode_notify_simple(&mm->mm_network->mn_id); }