diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-02 12:34:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-02 15:15:30 +0100 |
commit | 2d39da5405a4527e91e853ddb1e56a539c96c6c1 (patch) | |
tree | 342f5d553c844f05b550510de27d5b7c937daf90 /Meta/Lagom | |
parent | b7e3810b5c3d7e52217e70eed61132d9f670648d (diff) | |
download | serenity-2d39da5405a4527e91e853ddb1e56a539c96c6c1.zip |
LibCore: Put all classes in the Core namespace and remove the leading C
I've been wanting to do this for a long time. It's time we start being
consistent about how this stuff works.
The new convention is:
- "LibFoo" is a userspace library that provides the "Foo" namespace.
That's it :^) This was pretty tedious to convert and I didn't even
start on LibGUI yet. But it's coming up next.
Diffstat (limited to 'Meta/Lagom')
-rw-r--r-- | Meta/Lagom/SimpleIPCClient.cpp | 2 | ||||
-rw-r--r-- | Meta/Lagom/SimpleIPCServer.cpp | 6 | ||||
-rw-r--r-- | Meta/Lagom/TestApp.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Meta/Lagom/SimpleIPCClient.cpp b/Meta/Lagom/SimpleIPCClient.cpp index e12d6493f4..8993cee63f 100644 --- a/Meta/Lagom/SimpleIPCClient.cpp +++ b/Meta/Lagom/SimpleIPCClient.cpp @@ -47,7 +47,7 @@ public: int main(int, char**) { - CEventLoop event_loop; + Core::EventLoop event_loop; SimpleIPCClient client; diff --git a/Meta/Lagom/SimpleIPCServer.cpp b/Meta/Lagom/SimpleIPCServer.cpp index 607a9d8f1d..c200f99a69 100644 --- a/Meta/Lagom/SimpleIPCServer.cpp +++ b/Meta/Lagom/SimpleIPCServer.cpp @@ -37,7 +37,7 @@ class SimpleIPCServer final : C_OBJECT(SimpleIPCServer) public: - SimpleIPCServer(CLocalSocket& socket, int client_id) + SimpleIPCServer(Core::LocalSocket& socket, int client_id) : ConnectionNG(*this, socket, client_id) { } @@ -50,10 +50,10 @@ public: int main(int, char**) { - CEventLoop event_loop; + Core::EventLoop event_loop; unlink("/tmp/simple-ipc"); - auto server = CLocalServer::construct(); + auto server = Core::LocalServer::construct(); server->listen("/tmp/simple-ipc"); server->on_ready_to_accept = [&] { auto client_socket = server->accept(); diff --git a/Meta/Lagom/TestApp.cpp b/Meta/Lagom/TestApp.cpp index 43c9edb13e..82b06450c4 100644 --- a/Meta/Lagom/TestApp.cpp +++ b/Meta/Lagom/TestApp.cpp @@ -30,9 +30,9 @@ int main(int, char**) { - CEventLoop event_loop; + Core::EventLoop event_loop; - auto timer = CTimer::construct(100, [&] { + auto timer = Core::Timer::construct(100, [&] { dbg() << "Timer fired, good-bye! :^)"; event_loop.quit(0); }); |