|
XenevaOS
|
#include <stdint.h>#include <stdio.h>#include <_xeneva.h>#include <sys\_keproc.h>#include <string.h>#include <sys\_heap.h>#include <sys\mman.h>#include <sys\_kefile.h>#include <stdlib.h>#include <sys\iocodes.h>#include <sys/_kecred.h>
Classes | |
| struct | _init_request_msg_ |
| struct | _sound_card_list |
Macros | |
| #define | GROUP_INPUT 20 |
| #define | GROUP_VIDEO 21 |
| #define | GROUP_TTY 22 |
| #define | GROUP_AUDIO 21 |
| #define | UAC_DEAMONS 40 |
| #define | UAC_NORMAL_USER 1000 |
| #define | INIT_REQUEST_PW_DOWN "init.request.powerdown" |
| #define | INIT_REQUEST_PW_REBOOT "init.request.reboot" |
Typedefs | |
| typedef struct _init_request_msg_ | InitRequestMsg |
| typedef struct _sound_card_list | aurora_snd_card_list |
Functions | |
| void | initSetupBasicEnvironmentVars () |
| void | SplashScreenShow () |
| void | init_basic_gid_to_dev () |
| void | _play_startup_sound () |
| void | _init_handle_request (InitRequestMsg *msg) |
| _init_handle_request – handle request msgs | |
| void | main (int argc, char *argv[]) |
Variables | |
| int | _sound |
| #define GROUP_AUDIO 21 |
| #define GROUP_INPUT 20 |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Let's hardcode,credentials untill we get proper login manager
| #define GROUP_TTY 22 |
| #define GROUP_VIDEO 21 |
| #define INIT_REQUEST_PW_DOWN "init.request.powerdown" |
Init Request msgs
| #define INIT_REQUEST_PW_REBOOT "init.request.reboot" |
| #define UAC_DEAMONS 40 |
hardcoded untill we get proper login manager
| #define UAC_NORMAL_USER 1000 |
| typedef struct _sound_card_list aurora_snd_card_list |
| typedef struct _init_request_msg_ InitRequestMsg |
| void _init_handle_request | ( | InitRequestMsg * | msg | ) |
_init_handle_request – handle request msgs
| void _play_startup_sound | ( | ) |
_play_startup_sound – play the startup sound
uint_2 must hold the sound card number to use
just print all card name once
let's use default first sound card here
| void init_basic_gid_to_dev | ( | ) |
| void initSetupBasicEnvironmentVars | ( | ) |
| void main | ( | int | argc, |
| char * | argv[] | ||
| ) |
play the startup sound, for better experience
allocate a memory for init request msgs
TODO: add IPC system to track real system progress and animate the logo accordingly
|
extern |
| int _sound |