mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Userland: Make IPC results with one return value available directly
This changes client methods so that they return the IPC response's return value directly - instead of the response struct - for IPC methods which only have a single return value.
This commit is contained in:
parent
5bb79ea0a7
commit
eb21aa65d1
18 changed files with 58 additions and 111 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().get_screen_bitmap();
|
||||
auto shared_bitmap = GUI::WindowServerConnection::the().get_screen_bitmap();
|
||||
|
||||
auto* bitmap = response.bitmap().bitmap();
|
||||
auto* bitmap = shared_bitmap.bitmap();
|
||||
if (!bitmap) {
|
||||
warnln("Failed to grab screenshot");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue