1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibIPC: Allow creating MultiServer from an already existing LocalServer

This commit is contained in:
Andrew Kaster 2024-04-26 15:16:52 -06:00 committed by Tim Flynn
parent f8362c8abf
commit 4db0ec86c0
Notes: sideshowbarker 2024-07-17 06:20:50 +09:00

View file

@ -23,6 +23,11 @@ public:
return adopt_nonnull_own_or_enomem(new (nothrow) MultiServer(move(server)));
}
static ErrorOr<NonnullOwnPtr<MultiServer>> try_create(NonnullRefPtr<Core::LocalServer> server)
{
return adopt_nonnull_own_or_enomem(new (nothrow) MultiServer(move(server)));
}
Function<void(ConnectionFromClientType&)> on_new_client;
private: