Skip to content

Commit

Permalink
refactor(server): define output metadata outside of output state
Browse files Browse the repository at this point in the history
This way the struct can be used independently.
  • Loading branch information
romangg committed Mar 18, 2023
1 parent 3684e81 commit 2aef85b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions server/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,17 @@ struct output_mode {
int id{-1};
};

struct output_state {
struct {
std::string name{"Unknown"};
std::string description;
std::string make;
std::string model;
std::string serial_number;
QSize physical_size;
} meta;
struct output_metadata {
std::string name{"Unknown"};
std::string description;
std::string make;
std::string model;
std::string serial_number;
QSize physical_size;
};

struct output_state {
output_metadata meta;
bool enabled{false};

output_mode mode;
Expand Down

0 comments on commit 2aef85b

Please sign in to comment.