LibC+Kernel: Move GPU-related API methods to a LibC header file

The Kernel/API directory in general shouldn't include userspace code,
but structure definitions that both are shared between the Kernel and
userspace.

All users of the ioctl API obviously use LibC so LibC is the most common
and shared library for the affected programs.
This commit is contained in:
Liav A 2023-09-08 21:51:58 +03:00 committed by Andrew Kaster
parent 8fe74c7d57
commit 50429d3b22
6 changed files with 5 additions and 5 deletions

View file

@ -14,8 +14,8 @@
# include <Kernel/Library/StdLib.h>
#else
# include <AK/ScopeGuard.h>
# include <Kernel/API/Graphics.h>
# include <fcntl.h>
# include <sys/devices/gpu.h>
# include <unistd.h>
# if ENABLE_PNP_IDS_DATA

View file

@ -8,10 +8,10 @@
#include "HardwareScreenBackend.h"
#include "ScreenBackend.h"
#include <AK/Try.h>
#include <Kernel/API/Graphics.h>
#include <LibCore/System.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/devices/gpu.h>
#include <sys/mman.h>
#include <unistd.h>

View file

@ -14,10 +14,10 @@
#include "WindowManager.h"
#include <AK/Debug.h>
#include <AK/Format.h>
#include <Kernel/API/Graphics.h>
#include <Kernel/API/MousePacket.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/devices/gpu.h>
#include <sys/mman.h>
#include <unistd.h>

View file

@ -5,7 +5,7 @@
*/
#include <AK/ScopeGuard.h>
#include <Kernel/API/Graphics.h>
#include <sys/devices/gpu.h>
#include <LibIPC/Decoder.h>
#include <LibIPC/Encoder.h>
#include <Services/WindowServer/ScreenLayout.h>

View file

@ -9,7 +9,6 @@
#include "EventLoop.h"
#include "Screen.h"
#include "WindowManager.h"
#include <Kernel/API/Graphics.h>
#include <LibCore/ConfigFile.h>
#include <LibCore/DirIterator.h>
#include <LibCore/System.h>
@ -18,6 +17,7 @@
#include <LibGfx/SystemTheme.h>
#include <LibMain/Main.h>
#include <signal.h>
#include <sys/devices/gpu.h>
namespace WindowServer {
RefPtr<Core::ConfigFile> g_config;