From e7f9c4ef1dd8eb2a19fe98091db7d06834643ea9 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 4 Nov 2004 00:20:16 +0000 Subject: [PATCH] added general header file --- nlsop_general.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 nlsop_general.h diff --git a/nlsop_general.h b/nlsop_general.h new file mode 100644 index 0000000..e72dac3 --- /dev/null +++ b/nlsop_general.h @@ -0,0 +1,36 @@ +/* general nlsop header file */ + +#define DC_QUIT (1<<0) +#define DC_OK (1<<1) +#define DC_END (1<<2) + +#define NLSOP_GUI 'g' +#define NLSOP_CLIENT 'c' +#define NLSOP_NJOB 'N' +#define NLSOP_CJOB 'C' + +#define GUI_INFO 'i' +#define GUI_ADDJOB 'a' +#define GUI_QUIT 'q' + +typedef struct s_client { + int channel; + unsigned char status; +#define IDLE (1<<0) +#define WORK (1<<1) +} t_client; + +typedef struct s_job { + int channel; + unsigned char status; +#define IN_QUEUE (1<<0) +#define IN_WORK (1<<1) + int progress; + unsigned char *ac; + int *cc; + int x,y,z; + int size; + info info; + int step; +} t_job; + -- 2.20.1