mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Revert "IPCCompiler: Use string hashes for IPC endpoint magic"
This reverts commit 59218007a3
.
This commit is contained in:
parent
53aec3e06d
commit
418bc484e4
25 changed files with 29 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
||||||
endpoint LanguageClient
|
endpoint LanguageClient = 8002
|
||||||
{
|
{
|
||||||
AutoCompleteSuggestions(Vector<GUI::AutocompleteProvider::Entry> suggestions) =|
|
AutoCompleteSuggestions(Vector<GUI::AutocompleteProvider::Entry> suggestions) =|
|
||||||
DeclarationLocation(GUI::AutocompleteProvider::ProjectLocation location) =|
|
DeclarationLocation(GUI::AutocompleteProvider::ProjectLocation location) =|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint LanguageServer
|
endpoint LanguageServer = 8001
|
||||||
{
|
{
|
||||||
Greet(String project_root) => ()
|
Greet(String project_root) => ()
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,11 @@ int main(int argc, char** argv)
|
||||||
lexer.consume_specific("endpoint");
|
lexer.consume_specific("endpoint");
|
||||||
consume_whitespace();
|
consume_whitespace();
|
||||||
endpoints.last().name = lexer.consume_while([](char ch) { return !isspace(ch); });
|
endpoints.last().name = lexer.consume_while([](char ch) { return !isspace(ch); });
|
||||||
endpoints.last().magic = Traits<String>::hash(endpoints.last().name);
|
consume_whitespace();
|
||||||
|
assert_specific('=');
|
||||||
|
consume_whitespace();
|
||||||
|
auto magic_string = lexer.consume_while([](char ch) { return !isspace(ch) && ch != '{'; });
|
||||||
|
endpoints.last().magic = magic_string.to_int().value();
|
||||||
consume_whitespace();
|
consume_whitespace();
|
||||||
assert_specific('{');
|
assert_specific('{');
|
||||||
parse_messages();
|
parse_messages();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint AudioClient
|
endpoint AudioClient = 82
|
||||||
{
|
{
|
||||||
FinishedPlayingBuffer(i32 buffer_id) =|
|
FinishedPlayingBuffer(i32 buffer_id) =|
|
||||||
MutedStateChanged(bool muted) =|
|
MutedStateChanged(bool muted) =|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint AudioServer
|
endpoint AudioServer = 85
|
||||||
{
|
{
|
||||||
// Basic protocol
|
// Basic protocol
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint ClipboardClient
|
endpoint ClipboardClient = 804
|
||||||
{
|
{
|
||||||
ClipboardDataChanged([UTF8] String mime_type) =|
|
ClipboardDataChanged([UTF8] String mime_type) =|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint ClipboardServer
|
endpoint ClipboardServer = 802
|
||||||
{
|
{
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint ImageDecoderClient
|
endpoint ImageDecoderClient = 7002
|
||||||
{
|
{
|
||||||
Dummy() =|
|
Dummy() =|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint ImageDecoderServer
|
endpoint ImageDecoderServer = 7001
|
||||||
{
|
{
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint LaunchClient
|
endpoint LaunchClient = 102
|
||||||
{
|
{
|
||||||
Dummy() =|
|
Dummy() =|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint LaunchServer
|
endpoint LaunchServer = 101
|
||||||
{
|
{
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
OpenURL(URL url, String handler_name) => (bool response)
|
OpenURL(URL url, String handler_name) => (bool response)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint LookupClient
|
endpoint LookupClient = 9002
|
||||||
{
|
{
|
||||||
Dummy() =|
|
Dummy() =|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint LookupServer
|
endpoint LookupServer = 9001
|
||||||
{
|
{
|
||||||
LookupName(String name) => (int code, Vector<String> addresses)
|
LookupName(String name) => (int code, Vector<String> addresses)
|
||||||
LookupAddress(String address) => (int code, String name)
|
LookupAddress(String address) => (int code, String name)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint NotificationClient
|
endpoint NotificationClient = 92
|
||||||
{
|
{
|
||||||
Dummy() =|
|
Dummy() =|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint NotificationServer
|
endpoint NotificationServer = 95
|
||||||
{
|
{
|
||||||
// Basic protocol
|
// Basic protocol
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint ProtocolClient
|
endpoint ProtocolClient = 13
|
||||||
{
|
{
|
||||||
// Download notifications
|
// Download notifications
|
||||||
DownloadProgress(i32 download_id, Optional<u32> total_size, u32 downloaded_size) =|
|
DownloadProgress(i32 download_id, Optional<u32> total_size, u32 downloaded_size) =|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint ProtocolServer
|
endpoint ProtocolServer = 9
|
||||||
{
|
{
|
||||||
// Basic protocol
|
// Basic protocol
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint SymbolClient
|
endpoint SymbolClient = 4541511
|
||||||
{
|
{
|
||||||
Dummy() =|
|
Dummy() =|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint SymbolServer
|
endpoint SymbolServer = 4541510
|
||||||
{
|
{
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint WebContentClient
|
endpoint WebContentClient = 90
|
||||||
{
|
{
|
||||||
DidStartLoading(URL url) =|
|
DidStartLoading(URL url) =|
|
||||||
DidFinishLoading(URL url) =|
|
DidFinishLoading(URL url) =|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint WebContentServer
|
endpoint WebContentServer = 89
|
||||||
{
|
{
|
||||||
Greet() => ()
|
Greet() => ()
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint WindowClient
|
endpoint WindowClient = 4
|
||||||
{
|
{
|
||||||
Paint(i32 window_id, Gfx::IntSize window_size, Vector<Gfx::IntRect> rects) =|
|
Paint(i32 window_id, Gfx::IntSize window_size, Vector<Gfx::IntRect> rects) =|
|
||||||
MouseMove(i32 window_id, Gfx::IntPoint mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta, bool is_drag, Vector<String> mime_types) =|
|
MouseMove(i32 window_id, Gfx::IntPoint mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta, bool is_drag, Vector<String> mime_types) =|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint WindowManagerClient
|
endpoint WindowManagerClient = 1872
|
||||||
{
|
{
|
||||||
WindowRemoved(i32 wm_id, i32 client_id, i32 window_id) =|
|
WindowRemoved(i32 wm_id, i32 client_id, i32 window_id) =|
|
||||||
WindowStateChanged(i32 wm_id, i32 client_id, i32 window_id, i32 parent_client_id, i32 parent_window_id, bool is_active, bool is_minimized, bool is_modal, bool is_frameless, i32 window_type, [UTF8] String title, Gfx::IntRect rect, i32 progress) =|
|
WindowStateChanged(i32 wm_id, i32 client_id, i32 window_id, i32 parent_client_id, i32 parent_window_id, bool is_active, bool is_minimized, bool is_modal, bool is_frameless, i32 window_type, [UTF8] String title, Gfx::IntRect rect, i32 progress) =|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint WindowManagerServer
|
endpoint WindowManagerServer = 1871
|
||||||
{
|
{
|
||||||
SetEventMask(u32 event_mask) => ()
|
SetEventMask(u32 event_mask) => ()
|
||||||
SetManagerWindow(i32 window_id) => ()
|
SetManagerWindow(i32 window_id) => ()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
endpoint WindowServer
|
endpoint WindowServer = 2
|
||||||
{
|
{
|
||||||
Greet() => (Gfx::IntRect screen_rect, Core::AnonymousBuffer theme_buffer)
|
Greet() => (Gfx::IntRect screen_rect, Core::AnonymousBuffer theme_buffer)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue