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:
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>
|
||||
#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>
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibCore/AnonymousBuffer.h>
|
||||
|
||||
endpoint AudioClient
|
||||
{
|
||||
finished_playing_buffer(i32 buffer_id) =|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibCore/AnonymousBuffer.h>
|
||||
|
||||
endpoint AudioServer
|
||||
{
|
||||
// Mixer functions
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibCore/AnonymousBuffer.h>
|
||||
|
||||
endpoint ClipboardClient
|
||||
{
|
||||
clipboard_data_changed([UTF8] String mime_type) =|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibCore/AnonymousBuffer.h>
|
||||
|
||||
endpoint ClipboardServer
|
||||
{
|
||||
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
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <AK/URL.h>
|
||||
|
||||
endpoint LaunchClient
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <AK/URL.h>
|
||||
|
||||
endpoint LaunchServer
|
||||
{
|
||||
open_url(URL url, String handler_name) => (bool response)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibGfx/ShareableBitmap.h>
|
||||
|
||||
endpoint NotificationClient
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibGfx/ShareableBitmap.h>
|
||||
|
||||
endpoint NotificationServer
|
||||
{
|
||||
show_notification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => ()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <AK/URL.h>
|
||||
|
||||
endpoint RequestClient
|
||||
{
|
||||
request_progress(i32 request_id, Optional<u32> total_size, u32 downloaded_size) =|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <AK/URL.h>
|
||||
|
||||
endpoint RequestServer
|
||||
{
|
||||
// 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
|
||||
{
|
||||
did_start_loading(URL url) =|
|
||||
|
|
|
@ -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) =|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <AK/URL.h>
|
||||
|
||||
endpoint WebSocketClient
|
||||
{
|
||||
// Connection API
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <AK/URL.h>
|
||||
|
||||
endpoint WebSocketServer
|
||||
{
|
||||
// Connection API
|
||||
|
|
|
@ -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) =|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibGfx/ShareableBitmap.h>
|
||||
|
||||
endpoint WindowManagerClient
|
||||
{
|
||||
window_removed(i32 wm_id, i32 client_id, i32 window_id) =|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <LibGfx/ShareableBitmap.h>
|
||||
|
||||
endpoint WindowManagerServer
|
||||
{
|
||||
set_event_mask(u32 event_mask) =|
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#include <LibCore/AnonymousBuffer.h>
|
||||
#include <LibGfx/ShareableBitmap.h>
|
||||
|
||||
endpoint WindowServer
|
||||
{
|
||||
create_menubar(i32 menubar_id) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue