Rev 1239 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1237 | giacomo | 1 | #ifndef __LPARSER_H__ |
2 | #define __LPARSER_H__ |
||
3 | |||
1239 | giacomo | 4 | #include "lconst.h" |
1237 | giacomo | 5 | |
6 | struct loader_task { |
||
7 | |||
8 | char name[20]; |
||
9 | int number; |
||
10 | int group; |
||
11 | int server; |
||
12 | int local_scheduler; |
||
13 | int task_type; |
||
14 | |||
15 | int act_type; |
||
16 | struct timespec act_par_1; |
||
17 | struct timespec act_par_2; |
||
18 | struct timespec act_par_3; |
||
19 | int exec_type; |
||
20 | struct timespec exec_par_1; |
||
21 | struct timespec exec_par_2; |
||
22 | struct timespec exec_par_3; |
||
23 | |||
24 | struct timespec deadline; |
||
25 | struct timespec wcet; |
||
26 | |||
27 | int act_number; |
||
28 | struct timespec *act; |
||
29 | struct timespec *exec; |
||
30 | |||
31 | int crit_type; |
||
32 | int resource; |
||
33 | struct timespec crit_par_1; |
||
34 | struct timespec crit_par_2; |
||
35 | struct timespec crit_par_3; |
||
36 | struct timespec crit_par_4; |
||
37 | |||
38 | struct loader_task *next; |
||
39 | |||
40 | }; |
||
41 | |||
1244 | giacomo | 42 | struct loader_contract { |
1237 | giacomo | 43 | |
1244 | giacomo | 44 | int number; |
45 | struct timespec cmin; |
||
46 | struct timespec tmax; |
||
47 | struct timespec cmax; |
||
48 | struct timespec tmin; |
||
49 | int workload; |
||
50 | |||
51 | struct loader_contract *next; |
||
52 | |||
53 | }; |
||
54 | |||
55 | int line_parser_contract(char **buf, int line_num, struct timespec *total_time, struct loader_contract **last); |
||
56 | |||
57 | int line_parser_task(char **buf, int line_num, struct loader_task **last); |
||
58 | |||
1237 | giacomo | 59 | #endif |
60 |