Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/scripting/JSInterface_Lobby.h
Show All 21 Lines | |||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
#include <string> | #include <string> | ||||
namespace JSI_Lobby | namespace JSI_Lobby | ||||
{ | { | ||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
bool HasXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | bool HasXmppClient(); | ||||
bool IsRankedGame(ScriptInterface::CxPrivate* pCxPrivate); | void SetRankedGame(bool isRanked); | ||||
void SetRankedGame(ScriptInterface::CxPrivate* pCxPrivate, bool isRanked); | |||||
#if CONFIG2_LOBBY | #if CONFIG2_LOBBY | ||||
void StartXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password, const std::wstring& room, const std::wstring& nick, int historyRequestSize); | void StartXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password, const std::wstring& room, const std::wstring& nick, int historyRequestSize); | ||||
void StartRegisterXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password); | void StartRegisterXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password); | ||||
void StopXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | void StopXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void ConnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | void ConnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void DisconnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | void DisconnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
bool IsXmppClientConnected(ScriptInterface::CxPrivate* pCxPrivate); | bool IsXmppClientConnected(ScriptInterface::CxPrivate* pCxPrivate); | ||||
Show All 18 Lines | #if CONFIG2_LOBBY | ||||
void LobbyBan(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick, const std::wstring& reason); | void LobbyBan(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick, const std::wstring& reason); | ||||
const char* LobbyGetPlayerPresence(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | const char* LobbyGetPlayerPresence(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | ||||
const char* LobbyGetPlayerRole(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | const char* LobbyGetPlayerRole(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | ||||
std::wstring LobbyGetPlayerRating(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | std::wstring LobbyGetPlayerRating(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | ||||
std::wstring LobbyGetRoomSubject(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring LobbyGetRoomSubject(ScriptInterface::CxPrivate* pCxPrivate); | ||||
// Non-public secure PBKDF2 hash function with salting and 1,337 iterations | // Non-public secure PBKDF2 hash function with salting and 1,337 iterations | ||||
std::string EncryptPassword(const std::string& password, const std::string& username); | std::string EncryptPassword(const std::string& password, const std::string& username); | ||||
// Public hash interface. | |||||
std::wstring EncryptPassword(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& pass, const std::wstring& user); | |||||
Stan: Rebase hell? | |||||
#endif // CONFIG2_LOBBY | #endif // CONFIG2_LOBBY | ||||
} | } | ||||
#endif // INCLUDED_JSI_LOBBY | #endif // INCLUDED_JSI_LOBBY |
Wildfire Games · Phabricator
Rebase hell?