#ifndef _BIRUDA_COORDINGATOR_HEADER_INCLUDED #define _BIRUDA_COORDINGATOR_HEADER_INCLUDED #include "worker.h" #include #include "port.h" #define MAX_WORKERS 128 typedef struct { char *host; char *os; char *arch; unsigned int cpus; bool used; bool alive; time_t lastAlive; worker_t worker[MAX_WORKERS]; int nof_workers; } coordinator_t; int coordinator_init( const char *control ); void coordinator_terminate( ); int coordinator_free( ); int coordinator_add_worker( const char *name, worker_execution_mode_t mode, const char *command, const char *control, const char *data ); #endif