mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
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.
This commit is contained in:
parent
b7e3810b5c
commit
2d39da5405
265 changed files with 1380 additions and 1167 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
CEventLoop event_loop;
|
||||
Core::EventLoop event_loop;
|
||||
|
||||
SimpleIPCClient client;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue