示例#1
0
void cPluginEpgsearch::LoadUserVars()
{
   char* userVarFilename = strdup(AddDirectory(CONFIGDIR, "epgsearchuservars.conf"));
   if (access(userVarFilename, F_OK) == 0)
   {
      LogFile.Log(1, "loading %s", userVarFilename);
      cUserVarFile userVarFile;
      if (!userVarFile.Load(userVarFilename))
         LogFile.eSysLog("could not load '%s'", userVarFilename);
      else
         LogFile.Log(2,"loaded uservars from %s", userVarFilename);
   }
   free(userVarFilename);
   UserVars.InitInternalVars();
   UserVars.InitExtEPGVars();
}
示例#2
0
void cPluginEpgsearch::MainThreadHook(void)
{
  if (!VDR_readyafterStartup)
    {
      // signal VDR is ready, otherwise the search timer thread could use SVDRP before it works
      LogFile.Log(2, "VDR ready");
      VDR_readyafterStartup = true;
    }
}