2020-03-29 16:57:53 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-03-29 16:57:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-01-02 04:37:35 +00:00
|
|
|
#include <AK/Error.h>
|
|
|
|
|
2020-03-29 16:57:53 +00:00
|
|
|
namespace IPC {
|
|
|
|
|
|
|
|
class Decoder;
|
|
|
|
class Encoder;
|
|
|
|
class Message;
|
2024-01-03 01:27:29 +00:00
|
|
|
class MessageBuffer;
|
2020-11-21 18:59:12 +00:00
|
|
|
class File;
|
2021-10-23 19:40:07 +00:00
|
|
|
class Stub;
|
2020-03-29 16:57:53 +00:00
|
|
|
|
2022-11-15 15:01:23 +00:00
|
|
|
template<typename T>
|
2023-01-02 04:37:35 +00:00
|
|
|
ErrorOr<void> encode(Encoder&, T const&);
|
2022-11-15 15:01:23 +00:00
|
|
|
|
|
|
|
template<typename T>
|
2022-12-23 01:40:33 +00:00
|
|
|
ErrorOr<T> decode(Decoder&);
|
2022-11-15 15:01:23 +00:00
|
|
|
|
2020-03-29 16:57:53 +00:00
|
|
|
}
|