1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:25:06 +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:
Andreas Kling 2020-02-02 12:34:39 +01:00
parent b7e3810b5c
commit 2d39da5405
265 changed files with 1380 additions and 1167 deletions

View file

@ -135,7 +135,7 @@ void Service::setup_socket()
ASSERT_NOT_REACHED();
}
auto socket_address = CSocketAddress::local(m_socket_path);
auto socket_address = Core::SocketAddress::local(m_socket_path);
auto un = socket_address.to_sockaddr_un();
int rc = bind(m_socket_fd, (const sockaddr*)&un, sizeof(un));
if (rc < 0) {
@ -156,7 +156,7 @@ void Service::setup_notifier()
ASSERT(m_socket_fd >= 0);
ASSERT(!m_socket_notifier);
m_socket_notifier = CNotifier::construct(m_socket_fd, CNotifier::Event::Read, this);
m_socket_notifier = Core::Notifier::construct(m_socket_fd, Core::Notifier::Event::Read, this);
m_socket_notifier->on_ready_to_read = [this] {
dbg() << "Ready to read on behalf of " << name();
remove_child(*m_socket_notifier);
@ -267,8 +267,8 @@ void Service::did_exit(int exit_code)
activate();
}
Service::Service(const CConfigFile& config, const StringView& name)
: CObject(nullptr)
Service::Service(const Core::ConfigFile& config, const StringView& name)
: Core::Object(nullptr)
{
ASSERT(config.has_group(name));
@ -304,7 +304,7 @@ Service::Service(const CConfigFile& config, const StringView& name)
void Service::save_to(JsonObject& json)
{
CObject::save_to(json);
Core::Object::save_to(json);
json.set("executable_path", m_executable_path);