Skip to content

Commit

Permalink
display/edid: add DEFINE_EDID_PROPERTIES
Browse files Browse the repository at this point in the history
Add a define for edid monitor properties.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180925075646.25114-5-kraxel@redhat.com
  • Loading branch information
kraxel committed Sep 27, 2018
1 parent 97917e9 commit 06510b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/hw/display/edid.h
Expand Up @@ -20,4 +20,8 @@ size_t qemu_edid_size(uint8_t *edid);
void qemu_edid_region_io(MemoryRegion *region, Object *owner,
uint8_t *edid, size_t size);

#define DEFINE_EDID_PROPERTIES(_state, _edid_info) \
DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0), \
DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0)

#endif /* EDID_H */

0 comments on commit 06510b8

Please sign in to comment.