linuxdvb: add back in la_is_enabled() callback that got removed by mistake.

This commit is contained in:
Adam Sutton 2014-01-12 22:31:27 +00:00
parent 257961d1ca
commit 701f05343c

View file

@ -109,6 +109,20 @@ linuxdvb_adapter_save ( linuxdvb_adapter_t *la )
htsmsg_destroy(m);
}
/*
* Check if enabled
*/
static int
linuxdvb_adapter_is_enabled ( linuxdvb_adapter_t *la )
{
linuxdvb_frontend_t *lfe;
LIST_FOREACH(lfe, &la->la_frontends, lfe_link) {
if (lfe->mi_is_enabled((mpegts_input_t*)lfe))
return 1;
}
return 0;
}
/*
* Create
*/
@ -134,6 +148,9 @@ linuxdvb_adapter_create
la->la_name = strdup(buf);
la->la_dvb_number = number;
/* Callbacks */
la->la_is_enabled = linuxdvb_adapter_is_enabled;
return la;
}