X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Facesskernel_src%2Fmain.c;h=7de6bf959bf863dbb1e3d2a8cea4eeaebcda0aa0;hb=02cbaac1233be9c5228973a787431fa5e0aa178e;hp=09e09dc4b5b21539382073e80b617807f4cc1adf;hpb=a09032f44bba55ce1e60dfab92a39cf6c909220b;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/main.c b/AcessNative/acesskernel_src/main.c index 09e09dc4..7de6bf95 100644 --- a/AcessNative/acesskernel_src/main.c +++ b/AcessNative/acesskernel_src/main.c @@ -6,10 +6,48 @@ */ #include #include -#include +// === IMPORTS === +extern int UI_Initialise(int Width, int Height); +extern int VFS_Init(void); +extern int Video_Install(char **Arguments); +extern int NativeKeyboard_Install(char **Arguments); +extern int VT_Install(char **Arguments); + +// === CODE === int main(int argc, char *argv[]) { + // Parse command line settings + + // Start UI subsystem + UI_Initialise(640, 480); + + // Initialise VFS + VFS_Init(); + // - Start IO Drivers + Video_Install(NULL); + NativeKeyboard_Install(NULL); + // - Start VTerm + { + char *args[] = { + "Video=NativeVideo", + "Input=NativeKeyboard", + NULL + }; + VT_Install(args); + } + + // Start syscall server + for( ;; ) + { + UI_Redraw(); + } + return 0; } +void AcessNative_Exit(void) +{ + // TODO: Close client applications too + exit(0); +}