Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
client_identity_storage.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <string>
9#include <vector>
10
11// local includes
13
14namespace startup {
15
24
29 bool success;
30 std::string errorMessage;
31 };
32
39
47
56 std::string *errorMessage = nullptr,
57 const std::string &directoryPath = default_client_identity_directory()
58 );
59
68 const network::PairingIdentity &identity,
69 const std::string &directoryPath = default_client_identity_directory()
70 );
71
72} // namespace startup
bool delete_client_identity(std::string *errorMessage, const std::string &directoryPath)
Delete persisted client identity material from disk.
Definition client_identity_storage.cpp:147
SaveClientIdentityResult save_client_identity(const network::PairingIdentity &identity, const std::string &directoryPath)
Save client pairing identity material to disk.
Definition client_identity_storage.cpp:159
std::string default_client_identity_directory()
Return the default directory used to store pairing identity files.
Definition client_identity_storage.cpp:101
LoadClientIdentityResult load_client_identity(const std::string &directoryPath)
Load persisted client pairing identity material from disk.
Definition client_identity_storage.cpp:105
Declares host pairing helpers.
Client identity material used for Moonlight host pairing.
Definition host_pairing.h:20
Result of loading persisted client pairing identity material.
Definition client_identity_storage.h:19
std::vector< std::string > warnings
Non-fatal warnings encountered while loading.
Definition client_identity_storage.h:21
bool fileFound
True when persisted identity files were present.
Definition client_identity_storage.h:22
network::PairingIdentity identity
Loaded client identity, or an empty identity when unavailable.
Definition client_identity_storage.h:20
Result of saving client pairing identity material.
Definition client_identity_storage.h:28
std::string errorMessage
Error detail when saving failed.
Definition client_identity_storage.h:30
bool success
True when the identity was saved successfully.
Definition client_identity_storage.h:29