1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 06:24:58 +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>
#include <AK/OwnPtr.h>
#include <AK/Result.h>
#include <AK/URL.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/Decoder.h>
#include <LibIPC/Dictionary.h>

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#include <LibCore/AnonymousBuffer.h>
endpoint ClipboardServer
{
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
{
}

View file

@ -1,3 +1,6 @@
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
endpoint ImageDecoderServer
{
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
{
}

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#include <AK/URL.h>
endpoint RequestServer
{
// 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
{
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
{
update_system_theme(Core::AnonymousBuffer theme_buffer) =|

View file

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

View file

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

View file

@ -1,3 +1,6 @@
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/ShareableBitmap.h>
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) =|

View file

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

View file

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

View file

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