mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +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
|
@ -40,7 +40,7 @@ class LaunchServerConnection : public IPC::ServerConnection<LaunchClientEndpoint
|
|||
public:
|
||||
virtual void handshake() override
|
||||
{
|
||||
send_sync<Messages::LaunchServer::Greet>();
|
||||
greet();
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -99,7 +99,7 @@ bool Launcher::seal_allowlist()
|
|||
|
||||
bool Launcher::open(const URL& url, const String& handler_name)
|
||||
{
|
||||
return connection().send_sync<Messages::LaunchServer::OpenURL>(url, handler_name)->response();
|
||||
return connection().open_url(url, handler_name).response();
|
||||
}
|
||||
|
||||
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().send_sync<Messages::LaunchServer::GetHandlersForURL>(url.to_string())->handlers();
|
||||
return connection().get_handlers_for_url(url.to_string()).handlers();
|
||||
}
|
||||
|
||||
auto Launcher::get_handlers_with_details_for_url(const URL& url) -> NonnullRefPtrVector<Details>
|
||||
{
|
||||
auto details = connection().send_sync<Messages::LaunchServer::GetHandlersWithDetailsForURL>(url.to_string())->handlers_details();
|
||||
auto details = connection().get_handlers_with_details_for_url(url.to_string()).handlers_details();
|
||||
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