diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-23 10:32:26 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-05-26 13:36:06 +0000 |
commit | be86145322e6157994b348711b7bedd209b565ea (patch) | |
tree | 6bb25298bff2a0b6be3db64769b9f103d789cd64 /include | |
parent | 2e69eb10303f3074d6cafef30e7e1ce49cb7a1ac (diff) |
output: turn make/model/serial into char *
This allows the make/model/serial to be NULL when unset, and allows
them to be longer than the hardcoded array length.
This is a breaking change: compositors need to handle the new NULL
case, and we stop setting make/model to useless "headless" or
"wayland" strings.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_output.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 48b6e6f9..13b6797f 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -122,9 +122,7 @@ struct wlr_output { char *name; char *description; // may be NULL - char make[56]; - char model[16]; - char serial[16]; + char *make, *model, *serial; // may be NULL int32_t phys_width, phys_height; // mm // Note: some backends may have zero modes |