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:
parent
fae3091999
commit
05e08afcd8
3 changed files with 25 additions and 6 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue