24 lines
459 B
C
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
|