aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 10:04:56 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 10:04:56 +0200
commit7855893959b44d12f9e333278e325e49f47c5a9f (patch)
tree3e24dab57e32780a1600c534a635f5a942e23cac /src/worker.h
parentmake struct server opaque (diff)
downloadcimple-7855893959b44d12f9e333278e325e49f47c5a9f.tar.gz
cimple-7855893959b44d12f9e333278e325e49f47c5a9f.zip
make struct worker opaque
Diffstat (limited to 'src/worker.h')
-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[]);