/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace IPC { template ErrorOr> take_over_accepted_client_from_system_server() { auto socket = TRY(Core::take_over_socket_from_system_server()); return IPC::new_client_connection(IPC::Transport(move(socket))); } }