summaryrefslogtreecommitdiff
path: root/Libraries/LibIPC/IMessage.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-03 15:29:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-03 15:29:40 +0200
commita40e763b2aa6297b5a3c147d746852bb4f74b6e5 (patch)
treec8f3c210a3c98c745be66ce8e3b85a10be56e163 /Libraries/LibIPC/IMessage.h
parentaa8a3d4a8949da4a571194b85b480a371c3390ab (diff)
downloadserenity-a40e763b2aa6297b5a3c147d746852bb4f74b6e5.zip
LibIPC: Start fleshing out a separate IPC library
This will be a place to put object serialization/deserialization logic, message parsing, endpoint management, etc.
Diffstat (limited to 'Libraries/LibIPC/IMessage.h')
-rw-r--r--Libraries/LibIPC/IMessage.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Libraries/LibIPC/IMessage.h b/Libraries/LibIPC/IMessage.h
new file mode 100644
index 0000000000..4be554852b
--- /dev/null
+++ b/Libraries/LibIPC/IMessage.h
@@ -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;
+};