Serenity Operating System

Everywhere: Use IPC include syntax

Remove superfluous includes from IPCCompiler's generated output and
add include directives in IPC definitions where appropriate.

authored by

Timothy and committed by
Andreas Kling
944e5cfb 83fb97c3

+49 -5
-5
Userland/DevTools/IPCCompiler/main.cpp
··· 276 276 generator.append(R"~~~(#include <AK/MemoryStream.h> 277 277 #include <AK/OwnPtr.h> 278 278 #include <AK/Result.h> 279 - #include <AK/URL.h> 280 279 #include <AK/Utf8View.h> 281 - #include <LibCore/AnonymousBuffer.h> 282 - #include <LibGfx/Color.h> 283 - #include <LibGfx/Rect.h> 284 - #include <LibGfx/ShareableBitmap.h> 285 280 #include <LibIPC/Connection.h> 286 281 #include <LibIPC/Decoder.h> 287 282 #include <LibIPC/Dictionary.h>
+1
Userland/Libraries/LibGUI/Clipboard.cpp
··· 8 8 #include <Clipboard/ClipboardClientEndpoint.h> 9 9 #include <Clipboard/ClipboardServerEndpoint.h> 10 10 #include <LibGUI/Clipboard.h> 11 + #include <LibGfx/Bitmap.h> 11 12 #include <LibIPC/ServerConnection.h> 12 13 13 14 namespace GUI {
+2
Userland/Services/AudioServer/AudioClient.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + 1 3 endpoint AudioClient 2 4 { 3 5 finished_playing_buffer(i32 buffer_id) =|
+2
Userland/Services/AudioServer/AudioServer.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + 1 3 endpoint AudioServer 2 4 { 3 5 // Mixer functions
+2
Userland/Services/Clipboard/ClipboardClient.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + 1 3 endpoint ClipboardClient 2 4 { 3 5 clipboard_data_changed([UTF8] String mime_type) =|
+2
Userland/Services/Clipboard/ClipboardServer.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + 1 3 endpoint ClipboardServer 2 4 { 3 5 get_clipboard_data() => (Core::AnonymousBuffer data, [UTF8] String mime_type, IPC::Dictionary metadata)
+3
Userland/Services/ImageDecoder/ImageDecoderClient.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + #include <LibGfx/ShareableBitmap.h> 3 + 1 4 endpoint ImageDecoderClient 2 5 { 3 6 }
+3
Userland/Services/ImageDecoder/ImageDecoderServer.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + #include <LibGfx/ShareableBitmap.h> 3 + 1 4 endpoint ImageDecoderServer 2 5 { 3 6 decode_image(Core::AnonymousBuffer data) => (bool is_animated, u32 loop_count, Vector<Gfx::ShareableBitmap> bitmaps, Vector<u32> durations)
+2
Userland/Services/LaunchServer/LaunchClient.ipc
··· 1 + #include <AK/URL.h> 2 + 1 3 endpoint LaunchClient 2 4 { 3 5 }
+2
Userland/Services/LaunchServer/LaunchServer.ipc
··· 1 + #include <AK/URL.h> 2 + 1 3 endpoint LaunchServer 2 4 { 3 5 open_url(URL url, String handler_name) => (bool response)
+2
Userland/Services/NotificationServer/NotificationClient.ipc
··· 1 + #include <LibGfx/ShareableBitmap.h> 2 + 1 3 endpoint NotificationClient 2 4 { 3 5 }
+2
Userland/Services/NotificationServer/NotificationServer.ipc
··· 1 + #include <LibGfx/ShareableBitmap.h> 2 + 1 3 endpoint NotificationServer 2 4 { 3 5 show_notification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => ()
+2
Userland/Services/RequestServer/RequestClient.ipc
··· 1 + #include <AK/URL.h> 2 + 1 3 endpoint RequestClient 2 4 { 3 5 request_progress(i32 request_id, Optional<u32> total_size, u32 downloaded_size) =|
+2
Userland/Services/RequestServer/RequestServer.ipc
··· 1 + #include <AK/URL.h> 2 + 1 3 endpoint RequestServer 2 4 { 3 5 // Test if a specific protocol is supported, e.g "http"
+4
Userland/Services/WebContent/WebContentClient.ipc
··· 1 + #include <AK/URL.h> 2 + #include <LibCore/AnonymousBuffer.h> 3 + #include <LibGfx/ShareableBitmap.h> 4 + 1 5 endpoint WebContentClient 2 6 { 3 7 did_start_loading(URL url) =|
+4
Userland/Services/WebContent/WebContentServer.ipc
··· 1 + #include <AK/URL.h> 2 + #include <LibCore/AnonymousBuffer.h> 3 + #include <LibGfx/ShareableBitmap.h> 4 + 1 5 endpoint WebContentServer 2 6 { 3 7 update_system_theme(Core::AnonymousBuffer theme_buffer) =|
+2
Userland/Services/WebSocket/WebSocketClient.ipc
··· 1 + #include <AK/URL.h> 2 + 1 3 endpoint WebSocketClient 2 4 { 3 5 // Connection API
+2
Userland/Services/WebSocket/WebSocketServer.ipc
··· 1 + #include <AK/URL.h> 2 + 1 3 endpoint WebSocketServer 2 4 { 3 5 // Connection API
+3
Userland/Services/WindowServer/WindowClient.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + #include <LibGfx/ShareableBitmap.h> 3 + 1 4 endpoint WindowClient 2 5 { 3 6 fast_greet(Vector<Gfx::IntRect> screen_rects, u32 main_screen_index, Core::AnonymousBuffer theme_buffer, String default_font_query, String fixed_width_font_query) =|
+2
Userland/Services/WindowServer/WindowManagerClient.ipc
··· 1 + #include <LibGfx/ShareableBitmap.h> 2 + 1 3 endpoint WindowManagerClient 2 4 { 3 5 window_removed(i32 wm_id, i32 client_id, i32 window_id) =|
+2
Userland/Services/WindowServer/WindowManagerServer.ipc
··· 1 + #include <LibGfx/ShareableBitmap.h> 2 + 1 3 endpoint WindowManagerServer 2 4 { 3 5 set_event_mask(u32 event_mask) =|
+3
Userland/Services/WindowServer/WindowServer.ipc
··· 1 + #include <LibCore/AnonymousBuffer.h> 2 + #include <LibGfx/ShareableBitmap.h> 3 + 1 4 endpoint WindowServer 2 5 { 3 6 create_menubar(i32 menubar_id) =|