summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-02 11:07:05 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-02 11:11:05 +0100
commit8ae62c57eea6eea590019261d6be28e23565cd13 (patch)
treea0dea48dd664603f00dacb51203e9bdd66588960 /DevTools
parentb780dcf3534591e8ecf2f54d4fc816c0d56808be (diff)
downloadserenity-8ae62c57eea6eea590019261d6be28e23565cd13.zip
LibIPC: Rename IMessage id/name to message_id/message_name
Hogging "id" and "name" makes it impossible to use these as message parameter names, which seems silly. :^)
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/IPCCompiler/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp
index af09ff831b..1a622d4c40 100644
--- a/DevTools/IPCCompiler/main.cpp
+++ b/DevTools/IPCCompiler/main.cpp
@@ -265,10 +265,10 @@ int main(int argc, char** argv)
dbg() << " virtual ~" << name << "() override {}";
dbg() << " virtual i32 endpoint_magic() const override { return " << endpoint.magic << "; }";
dbg() << " static i32 static_endpoint_magic() { return " << endpoint.magic << "; }";
- dbg() << " virtual i32 id() const override { return (int)MessageID::" << name << "; }";
+ dbg() << " virtual i32 message_id() const override { return (int)MessageID::" << name << "; }";
dbg() << " static i32 static_message_id() { return (int)MessageID::" << name << "; }";
- dbg() << " virtual String name() const override { return \"" << endpoint.name << "::" << name << "\"; }";
- dbg() << " static String static_name() { return \"" << endpoint.name << "::" << name << "\"; }";
+ dbg() << " virtual String message_name() const override { return \"" << endpoint.name << "::" << name << "\"; }";
+ dbg() << " static String static_message_name() { return \"" << endpoint.name << "::" << name << "\"; }";
dbg() << " static OwnPtr<" << name << "> decode(BufferStream& stream, size_t& size_in_bytes)";
dbg() << " {";
@@ -463,7 +463,7 @@ int main(int argc, char** argv)
dbg();
dbg() << " virtual OwnPtr<IMessage> handle(const IMessage& message) override";
dbg() << " {";
- dbg() << " switch (message.id()) {";
+ dbg() << " switch (message.message_id()) {";
for (auto& message : endpoint.messages) {
auto do_decode_message = [&](const String& name, bool returns_something) {
dbg() << " case (int)" << endpoint.name << "::MessageID::" << name << ":";