Exemplo n.º 1
0
void CAddonCallbacksPVR::PVRTransferEpgEntry(void *addonData, const PVR_HANDLE handle, const EPG_TAG *epgentry)
{
  CEpg *xbmcEpg = static_cast<CEpg *>(handle->dataAddress);
  if (!handle || !xbmcEpg)
  {
    CLog::Log(LOGERROR, "PVR - %s - invalid handler data", __FUNCTION__);
    return;
  }

  /* transfer this entry to the epg */
  xbmcEpg->UpdateEntry(epgentry, handle->dataIdentifier == 1 /* update db */);
}
Exemplo n.º 2
0
void CAddonCallbacksPVR::PVRTransferEpgEntry(void *addonData, const PVR_HANDLE handle, const EPG_TAG *epgentry)
{
  CAddonCallbacks* addon = (CAddonCallbacks*) addonData;
  if (addon == NULL || handle == NULL || epgentry == NULL)
  {
    CLog::Log(LOGERROR, "CAddonCallbacksPVR - %s - called with a null pointer", __FUNCTION__);
    return;
  }

  CEpg *xbmcEpg   = (CEpg*) handle->dataAddress;

  EPG_TAG *epgentry2 = (EPG_TAG*) epgentry;
  bool bUpdateDatabase = handle->dataIdentifier == 1;

  /* transfer this entry to the epg */
  xbmcEpg->UpdateEntry(epgentry2, bUpdateDatabase);
}