mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
Userland: Update IPC calls to use proxies
This updates all existing code to use the auto-generated client methods instead of post_message/send_sync.
This commit is contained in:
parent
78803ce384
commit
5bb79ea0a7
63 changed files with 303 additions and 316 deletions
|
@ -34,9 +34,9 @@ int main(int argc, char** argv)
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
sleep(delay);
|
||||
auto response = GUI::WindowServerConnection::the().send_sync<Messages::WindowServer::GetScreenBitmap>();
|
||||
auto response = GUI::WindowServerConnection::the().get_screen_bitmap();
|
||||
|
||||
auto* bitmap = response->bitmap().bitmap();
|
||||
auto* bitmap = response.bitmap().bitmap();
|
||||
if (!bitmap) {
|
||||
warnln("Failed to grab screenshot");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue