From 7855893959b44d12f9e333278e325e49f47c5a9f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 Apr 2023 10:04:56 +0200 Subject: make struct worker opaque --- src/worker.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/worker.h') 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[]); -- cgit v1.2.3