Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

#ifndef __LPARSER_H__
#define __LPARSER_H__

#define PAR_TOTAL_EXEC_TIME 0
#define PAR_TIME 1
#define PAR_ACT_TYPE 2
#define PAR_TASK_NUMBER 3
#define PAR_EXEC_TYPE 4
#define PAR_TASK_TYPE 5
#define PAR_NOTHING 6
#define PAR_DEADLINE 7
#define PAR_ERROR 8
#define PAR_FOUND 9
#define PAR_CRIT_SESSION 10
#define PAR_END 11

#define PAR_EXEC_CONST 12
#define PAR_EXEC_MEAN 13

#define PAR_ACT_SINGLE 16
#define PAR_ACT_PERIODIC 17
#define PAR_ACT_MEAN 18

#define PAR_TASK_OS 21
#define PAR_TASK_CT 22
#define PAR_TASK_BT 23

#define PAR_NO_CRIT 26
#define PAR_CRIT 27

#define PAR_LOCAL_SCHEDULER 29
#define PAR_POSIX 30
#define PAR_EDF 31
#define PAR_RM 32

#define PAR_FSF_SERVER 33

struct loader_task {
 
  char name[20];
  int number;
  int group;
  int server;
  int local_scheduler;
  int task_type;

  int act_type;
  struct timespec act_par_1;
  struct timespec act_par_2;
  struct timespec act_par_3;
  int exec_type;
  struct timespec exec_par_1;
  struct timespec exec_par_2;
  struct timespec exec_par_3;
 
  struct timespec deadline;
  struct timespec wcet;
 
  int act_number;
  struct timespec *act;
  struct timespec *exec;

  int crit_type;
  int resource;
  struct timespec crit_par_1;
  struct timespec crit_par_2;
  struct timespec crit_par_3;
  struct timespec crit_par_4;
 
  struct loader_task *next;

};

int line_parser(char **buf, int line_num, struct timespec *total, struct loader_task **last);

#endif