int CPVRClients::AddClientToDb(const CStdString &strClientId, const CStdString &strName) { /* add this client to the database if it's not in there yet */ CPVRDatabase *database = OpenPVRDatabase(); int iClientDbId = database ? database->AddClient(strName, strClientId) : -1; if (iClientDbId == -1) { CLog::Log(LOGERROR, "PVR - %s - can't add client '%s' to the database", __FUNCTION__, strName.c_str()); } return iClientDbId; }