mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +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
|
@ -99,7 +99,7 @@ bool Launcher::seal_allowlist()
|
|||
|
||||
bool Launcher::open(const URL& url, const String& handler_name)
|
||||
{
|
||||
return connection().open_url(url, handler_name).response();
|
||||
return connection().open_url(url, handler_name);
|
||||
}
|
||||
|
||||
bool Launcher::open(const URL& url, const Details& details)
|
||||
|
@ -110,12 +110,12 @@ bool Launcher::open(const URL& url, const Details& details)
|
|||
|
||||
Vector<String> Launcher::get_handlers_for_url(const URL& url)
|
||||
{
|
||||
return connection().get_handlers_for_url(url.to_string()).handlers();
|
||||
return connection().get_handlers_for_url(url.to_string());
|
||||
}
|
||||
|
||||
auto Launcher::get_handlers_with_details_for_url(const URL& url) -> NonnullRefPtrVector<Details>
|
||||
{
|
||||
auto details = connection().get_handlers_with_details_for_url(url.to_string()).handlers_details();
|
||||
auto details = connection().get_handlers_with_details_for_url(url.to_string());
|
||||
NonnullRefPtrVector<Details> handlers_with_details;
|
||||
for (auto& value : details) {
|
||||
handlers_with_details.append(Details::from_details_str(value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue