Subversion Repositories shark

Rev

Rev 1304 | 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;
1304 giacomo 32
  struct timespec crit_par;
1254 giacomo 33
 
34
  struct loader_task *next;
35
 
36
};
37
 
38
struct loader_contract {
39
 
40
  int number;
41
  struct timespec cmin;
42
  struct timespec tmax;
43
  struct timespec cmax;
44
  struct timespec tmin;
45
  int workload;
1442 giacomo 46
  struct timespec  deadline;
1254 giacomo 47
  int local_scheduler;
48
 
49
  struct loader_contract *next;
50
 
51
};
52
 
53
int line_parser_contract(char **buf, int line_num, struct timespec *total_time, struct loader_contract **last);
54
 
55
int line_parser_task(char **buf, int line_num, struct loader_task **last);
56
 
57
#endif
58