Sunshine
latest
Self-hosted game stream host for Moonlight.
undo_data.h
Go to the documentation of this file.
1
5
#pragma once
6
7
// standard includes
8
#include <cstdint>
9
#include <optional>
10
#include <string>
11
#include <vector>
12
13
namespace
nvprefs {
14
15
class
undo_data_t
{
16
public
:
17
struct
data_t
{
18
struct
opengl_swapchain_t
{
19
uint32_t our_value;
20
std::optional<uint32_t> undo_value;
21
};
22
23
std::optional<opengl_swapchain_t> opengl_swapchain;
24
};
25
26
void
set_opengl_swapchain(uint32_t our_value, std::optional<uint32_t> undo_value);
27
28
std::optional<data_t::opengl_swapchain_t> get_opengl_swapchain()
const
;
29
30
std::string write()
const
;
31
32
void
read(
const
std::vector<char> &buffer);
33
34
void
merge(
const
undo_data_t
&newer_data);
35
36
private
:
37
data_t
data;
38
};
39
40
}
// namespace nvprefs
nvprefs::undo_data_t
Definition
undo_data.h:15
nvprefs::undo_data_t::data_t::opengl_swapchain_t
Definition
undo_data.h:18
nvprefs::undo_data_t::data_t
Definition
undo_data.h:17
src
platform
windows
nvprefs
undo_data.h
Generated by
1.10.0