Files
cworker/cworker.h
2023-08-18 22:38:43 +02:00

24 lines
459 B
C

#ifndef CWORKER_H_QWERTY
#define CWORKER_H_QWERTY
#include <stdint.h>
typedef struct {
int64_t port;
int socket;
int nofork;
int logfd;
} cworker_t;
int cworker_init(cworker_t* worker, char** argv, int argc);
int cworker_detach(const cworker_t* worker);
int cworker_writepid(const cworker_t* worker);
int cworker_configure(const cworker_t* worker);
int cworker_build(cworker_t* worker);
int cworker_run(const cworker_t* worker);
#endif