mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10: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
|
@ -24,8 +24,8 @@ int main(int argc, char** argv)
|
|||
// A Core::EventLoop is all we need, but WindowServerConnection needs a full Application object.
|
||||
char* dummy_argv[] = { argv[0] };
|
||||
auto app = GUI::Application::construct(1, dummy_argv);
|
||||
auto result = GUI::WindowServerConnection::the().send_sync<Messages::WindowServer::SetResolution>(Gfx::IntSize { width, height }, scale);
|
||||
if (!result->success()) {
|
||||
auto result = GUI::WindowServerConnection::the().set_resolution(Gfx::IntSize { width, height }, scale);
|
||||
if (!result.success()) {
|
||||
warnln("failed to set resolution");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue