Kernel/VFS - Added warning (instead of LOG) when GetNodeFromInode is unsupported
[tpg/acess2.git] / Usermode / Applications / init_src / common.h
1 /*
2  * Acess2 Userland init(8)
3  * - Userland root process
4  * 
5  * common.h
6  * - Common type definitions
7  */
8 #ifndef _COMMON_H_
9 #define _COMMON_H_
10
11 typedef struct sInitProgram     tInitProgram;
12
13 struct sKTerm
14 {
15          int    ID;
16 };
17
18 struct sSTerm
19 {
20         uint32_t        FormatBits;
21         unsigned int    BaudRate;
22         char    Path[];
23 };
24
25 struct sDaemon
26 {
27         char    *StdoutPath;    // heap
28         char    *StderrPath;    // heap
29 };
30
31 union uProgTypes
32 {
33         struct sKTerm   KTerm;
34         struct sSTerm   STerm;
35         struct sDaemon  Daemon;
36 };
37
38 enum eProgType
39 {
40         PT_KTERM,
41         PT_STERM,
42         PT_DAEMON
43 };
44
45 struct sInitProgram
46 {
47         tInitProgram    *Next;
48         enum eProgType  Type;
49          int    CurrentPID;
50         char    **Command;
51         union uProgTypes        TypeInfo;
52 };
53
54 #endif
55

UCC git Repository :: git.ucc.asn.au