// thread_functions.h #ifndef HAVE_THREAD_FUNCTIONS_H #define HAVE_THREAD_FUNCTIONS_H #include "common/config.h" #include "socket_driver.h" #include "comm_driver.h" #include "command_interpreter.h" // main program threads void *thread_driver_func(void *arg); void *thread_process_func(void *arg); void *thread_comm_func(void *arg); // this is for our threaded lookup function void *lookup_address(void *arg); // ThreadData is shared between all threads typedef struct { SocketDriver *driver; CommDriver *comm; sem_t *semafor; BOOL *shutdown; } ThreadData; #endif // HAVE_THREAD_FUNCTIONS_H