![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Implements client identity persistence. More...
#include "src/startup/client_identity_storage.h"#include <cerrno>#include <cstdio>#include <cstring>#include <string>#include <string_view>#include <vector>#include "src/platform/error_utils.h"#include "src/platform/filesystem_utils.h"#include "src/startup/storage_paths.h"Functions | |
| std::string | startup::default_client_identity_directory () |
| Return the default directory used to store pairing identity files. | |
| bool | startup::delete_client_identity (std::string *errorMessage=nullptr, const std::string &directoryPath=default_client_identity_directory()) |
| Delete persisted client identity material from disk. | |
| LoadClientIdentityResult | startup::load_client_identity (const std::string &directoryPath=default_client_identity_directory()) |
| Load persisted client pairing identity material from disk. | |
| SaveClientIdentityResult | startup::save_client_identity (const network::PairingIdentity &identity, const std::string &directoryPath=default_client_identity_directory()) |
| Save client pairing identity material to disk. | |
Implements client identity persistence.
| std::string startup::default_client_identity_directory | ( | ) |
Return the default directory used to store pairing identity files.
| bool startup::delete_client_identity | ( | std::string * | errorMessage = nullptr, |
| const std::string & | directoryPath = default_client_identity_directory() ) |
Delete persisted client identity material from disk.
| errorMessage | Optional output for deletion failures. |
| directoryPath | Directory containing the identity files. |
| LoadClientIdentityResult startup::load_client_identity | ( | const std::string & | directoryPath = default_client_identity_directory() | ) |
Load persisted client pairing identity material from disk.
| directoryPath | Directory containing the identity files. |
| SaveClientIdentityResult startup::save_client_identity | ( | const network::PairingIdentity & | identity, |
| const std::string & | directoryPath = default_client_identity_directory() ) |
Save client pairing identity material to disk.
| identity | Client identity to persist. |
| directoryPath | Directory where the identity files should be written. |