X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=nlsop_general.h;fp=nlsop_general.h;h=e72dac38d984649d7505c59015ebcba8832efb15;hp=0000000000000000000000000000000000000000;hb=e7f9c4ef1dd8eb2a19fe98091db7d06834643ea9;hpb=b49c96b3def8a0907e366eac36be249f08e49799 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; +