1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Everywhere: Use IPC include syntax

Remove superfluous includes from IPCCompiler's generated output and
add include directives in IPC definitions where appropriate.
This commit is contained in:
Timothy 2021-07-02 21:40:44 -07:00 committed by Andreas Kling
parent 83fb97c301
commit 944e5cfb35
22 changed files with 49 additions and 5 deletions

View file

@ -276,12 +276,7 @@ int main(int argc, char** argv)
generator.append(R"~~~(#include <AK/MemoryStream.h> generator.append(R"~~~(#include <AK/MemoryStream.h>
#include <AK/OwnPtr.h> #include <AK/OwnPtr.h>
#include <AK/Result.h> #include <AK/Result.h>
#include <AK/URL.h>
#include <AK/Utf8View.h> #include <AK/Utf8View.h>
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/Color.h>
#include <LibGfx/Rect.h>
#include <LibGfx/ShareableBitmap.h>
#include <LibIPC/Connection.h> #include <LibIPC/Connection.h>
#include <LibIPC/Decoder.h> #include <LibIPC/Decoder.h>
#include <LibIPC/Dictionary.h> #include <LibIPC/Dictionary.h>

View file

@ -8,6 +8,7 @@
#include <Clipboard/ClipboardClientEndpoint.h> #include <Clipboard/ClipboardClientEndpoint.h>
#include <Clipboard/ClipboardServerEndpoint.h> #include <Clipboard/ClipboardServerEndpoint.h>
#include <LibGUI/Clipboard.h> #include <LibGUI/Clipboard.h>
#include <LibGfx/Bitmap.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ServerConnection.h>
namespace GUI { namespace GUI {

View file

@ -1,3 +1,5 @@
#include <LibCore/AnonymousBuffer.h>
endpoint AudioClient endpoint AudioClient
{ {
finished_playing_buffer(i32 buffer_id) =| finished_playing_buffer(i32 buffer_id) =|

View file

@ -1,3 +1,5 @@
#include <LibCore/AnonymousBuffer.h>
endpoint AudioServer endpoint AudioServer
{ {
// Mixer functions // Mixer functions

View file

@ -1,3 +1,5 @@
#include <LibCore/AnonymousBuffer.h>
endpoint ClipboardClient endpoint ClipboardClient
{ {
clipboard_data_changed([UTF8] String mime_type) =| clipboard_data_changed([UTF8] String mime_type) =|

View file

@ -1,3 +1,5 @@
#include <LibCore/AnonymousBuffer.h>
endpoint ClipboardServer endpoint ClipboardServer
{ {
get_clipboard_data() => (Core::AnonymousBuffer data, [UTF8] String mime_type, IPC::Dictionary metadata) get_clipboard_data() => (Core::AnonymousBuffer data, [UTF8] String mime_type, IPC::Dictionary metadata)

View file

@ -1,3 +1,6 @@
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint ImageDecoderClient endpoint ImageDecoderClient
{ {
} }

View file

@ -1,3 +1,6 @@
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint ImageDecoderServer endpoint ImageDecoderServer
{ {
decode_image(Core::AnonymousBuffer data) => (bool is_animated, u32 loop_count, Vector<Gfx::ShareableBitmap> bitmaps, Vector<u32> durations) decode_image(Core::AnonymousBuffer data) => (bool is_animated, u32 loop_count, Vector<Gfx::ShareableBitmap> bitmaps, Vector<u32> durations)

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint LaunchClient endpoint LaunchClient
{ {
} }

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint LaunchServer endpoint LaunchServer
{ {
open_url(URL url, String handler_name) => (bool response) open_url(URL url, String handler_name) => (bool response)

View file

@ -1,3 +1,5 @@
#include <LibGfx/ShareableBitmap.h>
endpoint NotificationClient endpoint NotificationClient
{ {
} }

View file

@ -1,3 +1,5 @@
#include <LibGfx/ShareableBitmap.h>
endpoint NotificationServer endpoint NotificationServer
{ {
show_notification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => () show_notification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => ()

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint RequestClient endpoint RequestClient
{ {
request_progress(i32 request_id, Optional<u32> total_size, u32 downloaded_size) =| request_progress(i32 request_id, Optional<u32> total_size, u32 downloaded_size) =|

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint RequestServer endpoint RequestServer
{ {
// Test if a specific protocol is supported, e.g "http" // Test if a specific protocol is supported, e.g "http"

View file

@ -1,3 +1,7 @@
#include <AK/URL.h>
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint WebContentClient endpoint WebContentClient
{ {
did_start_loading(URL url) =| did_start_loading(URL url) =|

View file

@ -1,3 +1,7 @@
#include <AK/URL.h>
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint WebContentServer endpoint WebContentServer
{ {
update_system_theme(Core::AnonymousBuffer theme_buffer) =| update_system_theme(Core::AnonymousBuffer theme_buffer) =|

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint WebSocketClient endpoint WebSocketClient
{ {
// Connection API // Connection API

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint WebSocketServer endpoint WebSocketServer
{ {
// Connection API // Connection API

View file

@ -1,3 +1,6 @@
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint WindowClient endpoint WindowClient
{ {
fast_greet(Vector<Gfx::IntRect> screen_rects, u32 main_screen_index, Core::AnonymousBuffer theme_buffer, String default_font_query, String fixed_width_font_query) =| fast_greet(Vector<Gfx::IntRect> screen_rects, u32 main_screen_index, Core::AnonymousBuffer theme_buffer, String default_font_query, String fixed_width_font_query) =|

View file

@ -1,3 +1,5 @@
#include <LibGfx/ShareableBitmap.h>
endpoint WindowManagerClient endpoint WindowManagerClient
{ {
window_removed(i32 wm_id, i32 client_id, i32 window_id) =| window_removed(i32 wm_id, i32 client_id, i32 window_id) =|

View file

@ -1,3 +1,5 @@
#include <LibGfx/ShareableBitmap.h>
endpoint WindowManagerServer endpoint WindowManagerServer
{ {
set_event_mask(u32 event_mask) =| set_event_mask(u32 event_mask) =|

View file

@ -1,3 +1,6 @@
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint WindowServer endpoint WindowServer
{ {
create_menubar(i32 menubar_id) =| create_menubar(i32 menubar_id) =|