Subversion Repositories shark

Rev

Rev 1254 | Go to most recent revision | Details | Compare with Previous | 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
 
23
  struct timespec deadline;
24
  struct timespec wcet;
25
 
26
  int act_number;
27
  struct timespec *act;
28
  struct timespec *exec;
29
 
30
  int crit_type;
31
  int resource;
32
  struct timespec crit_par_1;
33
  struct timespec crit_par_2;
34
  struct timespec crit_par_3;
35
  struct timespec crit_par_4;
36
 
37
  struct loader_task *next;
38
 
39
};
40
 
41
struct loader_contract {
42
 
43
  int number;
44
  struct timespec cmin;
45
  struct timespec tmax;
46
  struct timespec cmax;
47
  struct timespec tmin;
48
  int workload;
49
  int local_scheduler;
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
 
59
#endif
60