XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
_init.cpp File Reference
#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>
Include dependency graph for _init.cpp:

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
 

Macro Definition Documentation

◆ GROUP_AUDIO

#define GROUP_AUDIO   21

◆ GROUP_INPUT

#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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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

◆ GROUP_TTY

#define GROUP_TTY   22

◆ GROUP_VIDEO

#define GROUP_VIDEO   21

◆ INIT_REQUEST_PW_DOWN

#define INIT_REQUEST_PW_DOWN   "init.request.powerdown"

Init Request msgs

◆ INIT_REQUEST_PW_REBOOT

#define INIT_REQUEST_PW_REBOOT   "init.request.reboot"

◆ UAC_DEAMONS

#define UAC_DEAMONS   40

hardcoded untill we get proper login manager

◆ UAC_NORMAL_USER

#define UAC_NORMAL_USER   1000

Typedef Documentation

◆ aurora_snd_card_list

◆ InitRequestMsg

Function Documentation

◆ _init_handle_request()

void _init_handle_request ( InitRequestMsg msg)

_init_handle_request – handle request msgs

◆ _play_startup_sound()

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

◆ init_basic_gid_to_dev()

void init_basic_gid_to_dev ( )

◆ initSetupBasicEnvironmentVars()

void initSetupBasicEnvironmentVars ( )

◆ main()

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

  • just load all the background services *‍/

◆ SplashScreenShow()

void SplashScreenShow ( )
extern

Variable Documentation

◆ _sound

int _sound