Initial commit (sort of)
[matches/swarm.git] / src / task.h
1 #ifndef _TASK_H
2 #define _TASK_H
3
4 #include "options.h"
5
6
7 typedef struct t
8 {
9         char * message; // string
10         char * output;
11         int number; // identify the task by the order it was created in
12         int bufsiz;
13         int outsiz;
14         int outlen;
15         int repetitions; // number of times task must be run
16
17         char * outfile; // name of file to send output to (can be NULL)
18
19         struct t * next;
20         struct t * prev;
21 } Task;
22
23
24 extern Task * Task_Append(Task * p, char * message, int bufsiz, int repetitions, char * outfile);
25 extern  Task * Task_Prepend(Task * n, char * message, int bufsiz, int repetitions, char * outfile);
26 extern void Task_Extract(Task * t);
27 extern void Task_Destroy(Task * t);
28
29 extern void Task_DebugPrint(Task * t);
30
31
32 #endif //_TASK_H
33
34 //EOF

UCC git Repository :: git.ucc.asn.au