From 49c902d581703bd6db5c7439dd7c1dc0a5b0e726 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 17 Jan 2022 09:57:08 -0700 Subject: LibEDID: Add API for conveniently querying EDID from framebuffer device --- Userland/Libraries/LibEDID/EDID.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Userland/Libraries/LibEDID/EDID.h') diff --git a/Userland/Libraries/LibEDID/EDID.h b/Userland/Libraries/LibEDID/EDID.h index 82aced81fe..da966708cd 100644 --- a/Userland/Libraries/LibEDID/EDID.h +++ b/Userland/Libraries/LibEDID/EDID.h @@ -77,6 +77,11 @@ public: static ErrorOr from_bytes(ReadonlyBytes); static ErrorOr from_bytes(ByteBuffer&&); +#ifndef KERNEL + static ErrorOr from_framebuffer_device(int, size_t); + static ErrorOr from_framebuffer_device(String const&, size_t); +#endif + String legacy_manufacturer_id() const; u16 product_code() const; u32 serial_number() const; -- cgit v1.2.3