From: hackbard Date: Thu, 4 Nov 2004 00:20:16 +0000 (+0000) Subject: added general header file X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7f9c4ef1dd8eb2a19fe98091db7d06834643ea9;p=physik%2Fnlsop.git added general header file --- 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; +