Subversion Repositories shark

Rev

Rev 1258 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1254 giacomo 1
#ifndef __LPARSER_H__
2
#define __LPARSER_H__
3
 
4
#include "common/lconst.h"
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
 
42
struct loader_contract {
43
 
44
  int number;
45
  struct timespec cmin;
46
  struct timespec tmax;
47
  struct timespec cmax;
48
  struct timespec tmin;
49
  int workload;
50
  int local_scheduler;
51
 
52
  struct loader_contract *next;
53
 
54
};
55
 
56
int line_parser_contract(char **buf, int line_num, struct timespec *total_time, struct loader_contract **last);
57
 
58
int line_parser_task(char **buf, int line_num, struct loader_task **last);
59
 
60
#endif
61