mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +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
|
@ -38,7 +38,7 @@ static int pid_of(const String& process_name, bool single_shot, bool omit_pid, p
|
|||
{
|
||||
bool displayed_at_least_one = false;
|
||||
|
||||
auto processes = CProcessStatisticsReader().get_all();
|
||||
auto processes = Core::ProcessStatisticsReader().get_all();
|
||||
|
||||
for (auto& it : processes) {
|
||||
if (it.value.name == process_name) {
|
||||
|
@ -64,7 +64,7 @@ int main(int argc, char** argv)
|
|||
const char* omit_pid_value = nullptr;
|
||||
const char* process_name = nullptr;
|
||||
|
||||
CArgsParser args_parser;
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(single_shot, "Only return one pid", nullptr, 's');
|
||||
args_parser.add_option(omit_pid_value, "Omit the given PID, or the parent process if the special value %PPID is passed", nullptr, 'o', "pid");
|
||||
args_parser.add_positional_argument(process_name, "Process name to search for", "process-name");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue