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:
parent
f8362c8abf
commit
4db0ec86c0
Notes:
sideshowbarker
2024-07-17 06:20:50 +09:00
Author: https://github.com/ADKaster
Commit: 4db0ec86c0
Pull-request: https://github.com/SerenityOS/serenity/pull/24126
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue