ProcessHandle.h 475 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Types.h>
  8. #include <LibIPC/Forward.h>
  9. namespace WebView {
  10. struct ProcessHandle {
  11. // FIXME: Use mach_port_t on macOS/Hurd and HANDLE on Windows.
  12. pid_t pid { -1 };
  13. };
  14. }
  15. template<>
  16. ErrorOr<void> IPC::encode(IPC::Encoder&, WebView::ProcessHandle const&);
  17. template<>
  18. ErrorOr<WebView::ProcessHandle> IPC::decode(IPC::Decoder&);