mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00
LibIPC: Start fleshing out a separate IPC library
This will be a place to put object serialization/deserialization logic, message parsing, endpoint management, etc.
This commit is contained in:
parent
aa8a3d4a89
commit
a40e763b2a
7 changed files with 81 additions and 0 deletions
18
Libraries/LibIPC/IMessage.h
Normal file
18
Libraries/LibIPC/IMessage.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/ByteBuffer.h>
|
||||
|
||||
class IMessage {
|
||||
public:
|
||||
virtual ~IMessage();
|
||||
|
||||
const String& name() const { return m_name; }
|
||||
virtual ByteBuffer encode() = 0;
|
||||
|
||||
protected:
|
||||
IMessage();
|
||||
|
||||
private:
|
||||
String m_name;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue