Skip to content

Commit

Permalink
Lemond: Now loads and starts services from /system/lemon/lemond. Capi…
Browse files Browse the repository at this point in the history
…talise headers for readability
  • Loading branch information
fido2020 committed Mar 5, 2021
1 parent 2ee0cc0 commit 07df2b9
Show file tree
Hide file tree
Showing 257 changed files with 986 additions and 982 deletions.
6 changes: 3 additions & 3 deletions Applications/DeviceManager/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <lemon/gui/window.h>
#include <lemon/gui/model.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Model.h>

#include <lemon/system/device.h>
#include <Lemon/System/Device.h>

Lemon::GUI::Window* window;

Expand Down
12 changes: 6 additions & 6 deletions Applications/FileManager/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <lemon/gui/window.h>
#include <lemon/gui/widgets.h>
#include <lemon/gui/messagebox.h>
#include <lemon/system/filesystem.h>
#include <lemon/system/spawn.h>
#include <lemon/system/util.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Widgets.h>
#include <Lemon/GUI/Messagebox.h>
#include <Lemon/System/Filesystem.h>
#include <Lemon/System/Spawn.h>
#include <Lemon/System/Util.h>

#include <stdlib.h>
#include <fcntl.h>
Expand Down
6 changes: 3 additions & 3 deletions Applications/GUITest/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <lemon/gfx/graphics.h>
#include <lemon/gfx/surface.h>
#include <lemon/gui/window.h>
#include <Lemon/Graphics/Graphics.h>
#include <Lemon/Graphics/Surface.h>
#include <Lemon/GUI/Window.h>

#include <stdlib.h>
#include <stdio.h>
Expand Down
8 changes: 4 additions & 4 deletions Applications/ImgView/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <lemon/gui/window.h>
#include <lemon/gui/widgets.h>
#include <lemon/gui/messagebox.h>
#include <lemon/gui/filedialog.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Widgets.h>
#include <Lemon/GUI/Messagebox.h>
#include <Lemon/GUI/FileDialog.h>

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion Applications/JSONDump/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <lemon/core/json.h>
#include <Lemon/Core/JSON.h>

#include <iostream>
#include <sstream>
Expand Down
4 changes: 2 additions & 2 deletions Applications/LSh/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <stdlib.h>
#include <string.h>
#include <list>
#include <lemon/system/spawn.h>
#include <lemon/system/filesystem.h>
#include <Lemon/System/Spawn.h>
#include <Lemon/System/Filesystem.h>
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
Expand Down
8 changes: 4 additions & 4 deletions Applications/LemonMonitor/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <lemon/gui/window.h>
#include <lemon/gui/model.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Model.h>

#include <lemon/system/util.h>
#include <lemon/system/info.h>
#include <Lemon/System/Util.h>
#include <Lemon/System/Info.h>

#include <vector>
#include <map>
Expand Down
4 changes: 2 additions & 2 deletions Applications/Minesweeper/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <lemon/gui/window.h>
#include <lemon/gui/messagebox.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Messagebox.h>

#include <map>
#include <functional>
Expand Down
6 changes: 3 additions & 3 deletions Applications/Run/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <lemon/gui/window.h>
#include <lemon/gui/messagebox.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Messagebox.h>

#include <lemon/system/spawn.h>
#include <Lemon/System/Spawn.h>

#include <vector>
#include <cstring>
Expand Down
24 changes: 12 additions & 12 deletions Applications/Shell/main.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#include <stdint.h>

#include <lemon/syscall.h>
#include <lemon/system/filesystem.h>
#include <lemon/system/spawn.h>
#include <lemon/system/info.h>
#include <lemon/system/util.h>
#include <lemon/system/fb.h>
#include <lemon/system/ipc.h>
#include <lemon/system/waitable.h>
#include <lemon/gui/window.h>
#include <lemon/core/sharedmem.h>
#include <lemon/core/shell.h>
#include <lemon/core/keyboard.h>
#include <lemon/gfx/graphics.h>
#include <Lemon/System/Filesystem.h>
#include <Lemon/System/Spawn.h>
#include <Lemon/System/Info.h>
#include <Lemon/System/Util.h>
#include <Lemon/System/Framebuffer.h>
#include <Lemon/System/IPC.h>
#include <Lemon/System/Waitable.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/Core/SharedMemory.h>
#include <Lemon/Core/Shell.h>
#include <Lemon/Core/Keyboard.h>
#include <Lemon/Graphics/Graphics.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
Expand Down
11 changes: 6 additions & 5 deletions Applications/Shell/menu.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#include <lemon/system/fb.h>
#include <Lemon/System/Framebuffer.h>
#include <Lemon/System/Spawn.h>

#include <lemon/syscall.h>
#include <lemon/system/spawn.h>

#include <lemon/gfx/graphics.h>
#include <lemon/gui/window.h>
#include <lemon/core/cfgparser.h>
#include <Lemon/Graphics/Graphics.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/Core/CFGParser.h>

#include <fcntl.h>
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions Applications/Shell/shell.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <lemon/core/shell.h>
#include <lemon/ipc/interface.h>
#include <Lemon/Core/Shell.h>
#include <Lemon/IPC/Interface.h>
#include <string.h>
#include <stdexcept>

Expand Down
6 changes: 3 additions & 3 deletions Applications/Shell/shell.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <lemon/core/shell.h>
#include <lemon/gui/window.h>
#include <lemon/ipc/interface.h>
#include <Lemon/Core/Shell.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/IPC/Interface.h>

#include <map>

Expand Down
8 changes: 4 additions & 4 deletions Applications/Snake/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <lemon/syscall.h>
#include <lemon/gfx/surface.h>
#include <lemon/gfx/graphics.h>
#include <lemon/gui/window.h>
#include <lemon/core/keyboard.h>
#include <Lemon/Graphics/Surface.h>
#include <Lemon/Graphics/Graphics.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/Core/Keyboard.h>
#include <stdlib.h>
#include <list>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion Applications/Steal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <fstream>
#include <map>

#include <lemon/core/url.h>
#include <Lemon/Core/URL.h>

#include <sys/socket.h>
#include <arpa/inet.h>
Expand Down
10 changes: 5 additions & 5 deletions Applications/SysInfo/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <lemon/gui/window.h>
#include <lemon/gui/widgets.h>
#include <lemon/gui/messagebox.h>
#include <lemon/gui/filedialog.h>
#include <lemon/system/info.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Widgets.h>
#include <Lemon/GUI/Messagebox.h>
#include <Lemon/GUI/FileDialog.h>
#include <Lemon/System/Info.h>
#include <lemon/syscall.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
14 changes: 7 additions & 7 deletions Applications/Terminal/main.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <lemon/gfx/surface.h>
#include <lemon/gfx/graphics.h>
#include <lemon/gui/window.h>
#include <lemon/core/keyboard.h>
#include <Lemon/Graphics/Surface.h>
#include <Lemon/Graphics/Graphics.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/Core/Keyboard.h>

#include <lemon/syscall.h>
#include <lemon/system/filesystem.h>
#include <lemon/system/spawn.h>
#include <lemon/system/util.h>
#include <Lemon/System/Filesystem.h>
#include <Lemon/System/Spawn.h>
#include <Lemon/System/Util.h>

#include <unistd.h>
#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion Applications/TextEdit/exttextbox.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <lemon/gui/widgets.h>
#include <Lemon/GUI/Widgets.h>

class ExtendedTextBox : public Lemon::GUI::TextBox {
rect_t textBoxBounds;
Expand Down
12 changes: 6 additions & 6 deletions Applications/TextEdit/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <lemon/gfx/surface.h>
#include <lemon/gfx/graphics.h>
#include <lemon/gui/window.h>
#include <lemon/gui/widgets.h>
#include <lemon/gui/filedialog.h>
#include <lemon/gui/messagebox.h>
#include <Lemon/Graphics/Surface.h>
#include <Lemon/Graphics/Graphics.h>
#include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Widgets.h>
#include <Lemon/GUI/FileDialog.h>
#include <Lemon/GUI/Messagebox.h>

#include <stdio.h>
#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions Base/lemon/lemond/lemonwm.lemond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name" : "lemonwm",
"target" : "/system/lemon/lemonwm.lef"
}
5 changes: 5 additions & 0 deletions Base/lemon/lemond/networkgovernor.lemond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name" : "networkgovernor",
"target" : "/system/lemon/netgov.lef"
}

5 changes: 5 additions & 0 deletions Base/lemon/lemond/shell.lemond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name" : "shell",
"target" : "/system/bin/shell.lef",
"after" : "lemonwm"
}
1 change: 1 addition & 0 deletions Kernel/include/ABI
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <stdint.h>
#include <acpispec/tables.h>
#include <lai/helpers/pci.h>
#include <list.h>
#include <List.h>

typedef struct MADT{
acpi_header_t header;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <stdint.h>
#include <tss.h>
#include <thread.h>
#include <system.h>
#include <TSS.h>
#include <Thread.h>
#include <System.h>

struct process;
template<typename T>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <mischdr.h>
#include <MiscHdr.h>

namespace HAL{
extern memory_info_t mem_info;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <stdint.h>
#include <system.h>
#include <System.h>

#define IRQ0 32

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <physicalallocator.h>
#include <paging.h>
#include <liballoc.h>
#include <PhysicalAllocator.h>
#include <Paging.h>
#include <Liballoc.h>

typedef struct {
uint64_t base;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <stdint.h>
#include <assert.h>
#include <vector.h>
#include <list.h>
#include <Assert.h>
#include <Vector.h>
#include <List.h>

#define PCI_BIST_CAPABLE (1 << 7)
#define PCI_BIST_START (1 << 6)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <stdint.h>
#include <system.h>
#include <System.h>

#define KERNEL_VIRTUAL_BASE 0xFFFFFFFF80000000ULL
#define IO_VIRTUAL_BASE (KERNEL_VIRTUAL_BASE - 0x100000000ULL) // KERNEL_VIRTUAL_BASE - 4GB
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <paging.h>
#include <serial.h>
#include <string.h>
#include <mischdr.h>
#include <Paging.h>
#include <Serial.h>
#include <String.h>
#include <MiscHdr.h>

// The size of a block in phyiscal memory
#define PHYSALLOC_BLOCK_SIZE 4096
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdint.h>

#include <cpu.h>
#include <CPU.h>

namespace SMP{
extern CPU* cpus[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#pragma once

#include <stdint.h>
#include <paging.h>
#include <system.h>
#include <memory.h>
#include <list.h>
#include <vector.h>
#include <fs/filesystem.h>
#include <lock.h>
#include <timer.h>
#include <hash.h>
#include <cpu.h>

#include <objects/handle.h>

#include <thread.h>
#include <Paging.h>
#include <System.h>
#include <Memory.h>
#include <List.h>
#include <Vector.h>
#include <Fs/Filesystem.h>
#include <Lock.h>
#include <Timer.h>
#include <Hash.h>
#include <CPU.h>

#include <Objects/Handle.h>

#include <Thread.h>

#define KERNEL_CS 0x08
#define KERNEL_SS 0x10
Expand Down
File renamed without changes.
Loading

0 comments on commit 07df2b9

Please sign in to comment.