mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:14:58 +00:00
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:
parent
8fe74c7d57
commit
50429d3b22
6 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue