1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

IPCCompiler: Generate getters for message ID's and message names

Each endpoint namespace will have an enum class MessageID where you can
find all of its messages.
This commit is contained in:
Andreas Kling 2019-08-03 16:18:37 +02:00
parent fae3091999
commit 05e08afcd8
3 changed files with 25 additions and 6 deletions

View file

@ -7,12 +7,10 @@ class IMessage {
public:
virtual ~IMessage();
const String& name() const { return m_name; }
virtual int id() const = 0;
virtual String name() const = 0;
virtual ByteBuffer encode() = 0;
protected:
IMessage();
private:
String m_name;
};