linuxdvb: add back in la_is_enabled() callback that got removed by mistake.
This commit is contained in:
parent
257961d1ca
commit
701f05343c
1 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue