Ejemplo n.º 1
0
void tvhdhomerun_init ( void )
{
  hdhomerun_debug_obj = hdhomerun_debug_create();

  hdhomerun_debug_set_filename(hdhomerun_debug_obj, "/tmp/tvheadend_hdhomerun_errors.log");
  hdhomerun_debug_enable(hdhomerun_debug_obj);
  TAILQ_INIT(&tvhdhomerun_discoveries);
  tvhdhomerun_device_discovery();
}
Ejemplo n.º 2
0
void DebugInit(void)
{
	dbg = hdhomerun_debug_create();
	if (!dbg) {
		return;
	}

	DebugCheckState();
}
Ejemplo n.º 3
0
void tvhdhomerun_init ( void )
{
  hdhomerun_debug_obj = hdhomerun_debug_create();
  const char *s = getenv("TVHEADEND_HDHOMERUN_DEBUG");

  if (s != NULL && *s) {
    hdhomerun_debug_set_filename(hdhomerun_debug_obj, s);
    hdhomerun_debug_enable(hdhomerun_debug_obj);
  }
  idclass_register(&tvhdhomerun_device_class);
  idclass_register(&tvhdhomerun_frontend_dvbt_class);
  idclass_register(&tvhdhomerun_frontend_dvbc_class);
  idclass_register(&tvhdhomerun_frontend_atsc_t_class);
  idclass_register(&tvhdhomerun_frontend_atsc_c_class);
  TAILQ_INIT(&tvhdhomerun_discoveries);
  pthread_mutex_init(&tvhdhomerun_discovery_lock, NULL);
  tvh_cond_init(&tvhdhomerun_discovery_cond);
  tvhthread_create(&tvhdhomerun_discovery_tid, NULL,
                   tvhdhomerun_device_discovery_thread,
                   NULL, "hdhm-disc");
}