bool CAddonCallbacksGame::OpenPort(void* addonData, unsigned int port) { CGameClient* gameClient = GetGameClient(addonData, __FUNCTION__); if (!gameClient) return false; return gameClient->OpenPort(port); }
bool CGameClient::cb_open_port(void* kodiInstance, unsigned int port) { CGameClient *gameClient = static_cast<CGameClient*>(kodiInstance); if (!gameClient) return false; return gameClient->OpenPort(port); }