mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 14:48:17 +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
Notes:
sideshowbarker
2024-07-19 12:55:22 +09:00
Author: https://github.com/awesomekling
Commit: 05e08afcd8
3 changed files with 25 additions and 6 deletions
|
@ -6,7 +6,7 @@ class IEndpoint {
|
|||
public:
|
||||
virtual ~IEndpoint();
|
||||
|
||||
const String& name() const { return m_name; }
|
||||
virtual String name() const = 0;
|
||||
|
||||
protected:
|
||||
IEndpoint();
|
||||
|
|
|
@ -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