mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
32 lines
534 B
C++
32 lines
534 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Function.h>
|
|
#include <AK/Vector.h>
|
|
|
|
namespace IPC {
|
|
|
|
struct MessageBuffer {
|
|
Vector<u8, 1024> data;
|
|
Vector<int> fds;
|
|
};
|
|
|
|
class Message {
|
|
public:
|
|
virtual ~Message();
|
|
|
|
virtual int endpoint_magic() const = 0;
|
|
virtual int message_id() const = 0;
|
|
virtual const char* message_name() const = 0;
|
|
virtual MessageBuffer encode() const = 0;
|
|
|
|
protected:
|
|
Message();
|
|
};
|
|
|
|
}
|