aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/worker.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/worker.h b/src/worker.h
index 0bf3e80..246fd43 100644
--- a/src/worker.h
+++ b/src/worker.h
@@ -15,15 +15,9 @@ struct settings {
char *port;
};
-struct worker {
- int fd;
+struct worker;
- pthread_mutex_t task_mtx;
- pthread_t task;
- int task_active;
-};
-
-int worker_create(struct worker *, const struct settings *);
+int worker_create(struct worker **, const struct settings *);
void worker_destroy(struct worker *);
int worker_main(struct worker *, int argc, char *argv[]);