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:
parent
83fb97c301
commit
944e5cfb35
22 changed files with 49 additions and 5 deletions
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <LibCore/AnonymousBuffer.h>
|
||||||
|
|
||||||
endpoint AudioClient
|
endpoint AudioClient
|
||||||
{
|
{
|
||||||
finished_playing_buffer(i32 buffer_id) =|
|
finished_playing_buffer(i32 buffer_id) =|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <LibCore/AnonymousBuffer.h>
|
||||||
|
|
||||||
endpoint AudioServer
|
endpoint AudioServer
|
||||||
{
|
{
|
||||||
// Mixer functions
|
// Mixer functions
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#include <LibCore/AnonymousBuffer.h>
|
||||||
|
#include <LibGfx/ShareableBitmap.h>
|
||||||
|
|
||||||
endpoint ImageDecoderClient
|
endpoint ImageDecoderClient
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <AK/URL.h>
|
||||||
|
|
||||||
endpoint LaunchClient
|
endpoint LaunchClient
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <LibGfx/ShareableBitmap.h>
|
||||||
|
|
||||||
endpoint NotificationClient
|
endpoint NotificationClient
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) => ()
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <AK/URL.h>
|
||||||
|
|
||||||
endpoint WebSocketClient
|
endpoint WebSocketClient
|
||||||
{
|
{
|
||||||
// Connection API
|
// Connection API
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <AK/URL.h>
|
||||||
|
|
||||||
endpoint WebSocketServer
|
endpoint WebSocketServer
|
||||||
{
|
{
|
||||||
// Connection API
|
// Connection API
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <LibGfx/ShareableBitmap.h>
|
||||||
|
|
||||||
endpoint WindowManagerServer
|
endpoint WindowManagerServer
|
||||||
{
|
{
|
||||||
set_event_mask(u32 event_mask) =|
|
set_event_mask(u32 event_mask) =|
|
||||||
|
|
|
@ -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) =|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue