mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Utilities: Remove the edid-dump utility
This short-lived utility was essential when we had to use the ioctl interface to fetch the EDID from a DisplayConnector, but now that we can simply read it from SysFS, this utility is no longer needed and can be removed.
This commit is contained in:
parent
412a5999d0
commit
a70e1a0340
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/a70e1a0340 Pull-request: https://github.com/SerenityOS/serenity/pull/14597
2 changed files with 0 additions and 39 deletions
|
@ -106,7 +106,6 @@ target_link_libraries(disk_benchmark LibMain)
|
|||
target_link_libraries(dmesg LibMain)
|
||||
target_link_libraries(du LibMain)
|
||||
target_link_libraries(echo LibMain)
|
||||
target_link_libraries(edid-dump LibMain LibEDID)
|
||||
target_link_libraries(env LibMain)
|
||||
target_link_libraries(errno LibMain)
|
||||
target_link_libraries(expr LibRegex LibMain)
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringUtils.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibEDID/EDID.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
TRY(Core::System::pledge("stdio rpath wpath"));
|
||||
|
||||
StringView display_connector_file_name;
|
||||
Core::ArgsParser args;
|
||||
args.add_positional_argument(display_connector_file_name, "Display Connector Device Path", "display connector file name", Core::ArgsParser::Required::Yes);
|
||||
|
||||
args.parse(arguments);
|
||||
|
||||
auto edid = TRY(EDID::Parser::from_framebuffer_device(display_connector_file_name, 0));
|
||||
|
||||
out("{}", StringView { edid.bytes() });
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue