epggrab_module_ota_t *epggrab_module_ota_create
( epggrab_module_ota_t *skel,
const char *id, int subsys, const char *saveid,
- const char *name, int priority, int with_scraper,
- epggrab_ota_module_ops_t *ops )
+ const char *name, int priority, const idclass_t *idclass,
+ const epggrab_ota_module_ops_t *ops )
{
if (!skel) skel = calloc(1, sizeof(epggrab_module_ota_t));
/* Pass through */
epggrab_module_create((epggrab_module_t*)skel,
- with_scraper ?
- &epggrab_mod_ota_scraper_class : &epggrab_mod_ota_class,
+ idclass ?: &epggrab_mod_ota_class,
id, subsys, saveid, name, priority);
/* Setup */
{
eit_module_t * mod = (eit_module_t *)
epggrab_module_ota_create(calloc(1, sizeof(eit_module_t)),
- id, subsys, saveid,
- name, priority, 1, ops);
+ id, subsys, saveid, name, priority,
+ &epggrab_mod_ota_scraper_class, ops);
return mod;
}
sprintf(nbuf, "OpenTV: %s", name);
mod = (opentv_module_t *)
epggrab_module_ota_create(calloc(1, sizeof(opentv_module_t)),
- ibuf, LS_OPENTV, NULL, nbuf, 2, 0, &ops);
+ ibuf, LS_OPENTV, NULL, nbuf, 2, NULL, &ops);
/* Add provider details */
mod->dict = dict;
.tune = _psip_tune,
};
- epggrab_module_ota_create(NULL, "psip", LS_PSIP, NULL, "PSIP: ATSC Grabber", 1, 0, &ops);
+ epggrab_module_ota_create(NULL, "psip", LS_PSIP, NULL, "PSIP: ATSC Grabber",
+ 1, NULL, &ops);
}
void psip_done ( void )
epggrab_module_ota_t *epggrab_module_ota_create
( epggrab_module_ota_t *skel,
const char *id, int subsys, const char *saveid,
- const char *name, int priority, int with_scraper,
- epggrab_ota_module_ops_t *ops );
+ const char *name, int priority,
+ const idclass_t *idclass,
+ const epggrab_ota_module_ops_t *ops );
/* **************************************************************************
* OTA mux link routines
extern const idclass_t epggrab_mod_ext_pyepg_class;
extern const idclass_t epggrab_mod_ext_xmltv_class;
extern const idclass_t epggrab_mod_ota_class;
+extern const idclass_t epggrab_mod_ota_scraper_class;
/* **************************************************************************
* Module setup(s)