Initial commit (sort of)
[matches/swarm.git] / src / slave.h
1 #ifndef _SLAVE_H
2 #define _SLAVE_H
3
4 #define SLAVE_LOGFILE ".swarm.slave.log"
5
6 #include "options.h"
7 #include <unistd.h>
8 #include "task.h" // avoid compiler errors
9 typedef struct
10 {
11         int in;
12         int out;
13         int pid; // pid of the process running the slave; == 0 for network slaves
14         char * name;
15         char * addr;
16         Task * task;
17         Task * task_pool; // tasks specific to the slave
18
19
20         int ssh_pid; 
21
22         bool running;
23 } Slave;
24
25 extern void Slave_main(Options * o);
26
27 extern void Slave_loop(Options * o);
28
29
30 #endif //_SLAVE_H
31
32 //EOF

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