Some repositories couldn't be updated, please check application logs for details.
BadCredentialsException: 401 {"message": "Bad credentials", "documentation_url": "https://docs.github.com/rest", "status": "401"}

aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/worker.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/worker.h b/src/worker.h
new file mode 100644
index 0000000..5231594
--- /dev/null
+++ b/src/worker.h
@@ -0,0 +1,24 @@
+#ifndef __WORKER_H__
+#define __WORKER_H__
+
+#include <pthread.h>
+
+struct settings {
+ char *host;
+ char *port;
+};
+
+struct worker {
+ int fd;
+
+ pthread_mutex_t task_mtx;
+ pthread_t task;
+ int task_active;
+};
+
+int worker_create(struct worker *, const struct settings *);
+void worker_destroy(struct worker *);
+
+int worker_main(struct worker *, int argc, char *argv[]);
+
+#endif