void CAddonCallbacksPVR::PVRTransferRecordingEntry(void *addonData, const PVR_HANDLE handle, const PVR_RECORDING *recording) { CPVRClient *client = GetPVRClient(addonData); CPVRRecordings *xbmcRecordings = static_cast<CPVRRecordings *>(handle->dataAddress); if (!handle || !recording || !client || !xbmcRecordings) { CLog::Log(LOGERROR, "PVR - %s - invalid handler data", __FUNCTION__); return; } /* transfer this entry to the recordings container */ xbmcRecordings->UpdateFromClient(CPVRRecording(*recording, client->GetID())); }
void CAddonCallbacksPVR::PVRTransferRecordingEntry(void *addonData, const PVR_HANDLE handle, const PVR_RECORDING *recording) { CAddonCallbacks* addon = (CAddonCallbacks*) addonData; if (addon == NULL || handle == NULL || recording == NULL) { CLog::Log(LOGERROR, "CAddonCallbacksPVR - %s - called with a null pointer", __FUNCTION__); return; } CPVRClient* client = (CPVRClient*) handle->callerAddress; CPVRRecordings *xbmcRecordings = (CPVRRecordings*) handle->dataAddress; CPVRRecording tag(*recording, client->GetClientID()); /* transfer this entry to the recordings container */ xbmcRecordings->UpdateFromClient(tag); }