NEL_Z
[physik/nlsop.git] / nlsop_general.h
1 /* general nlsop header file */
2
3 #define DC_QUIT (1<<0)
4 #define DC_OK (1<<1)
5 #define DC_END (1<<2)
6
7 #define NLSOP_GUI 'g'
8 #define NLSOP_CLIENT 'c'
9 #define NLSOP_NJOB 'N'
10 #define NLSOP_CJOB 'C'
11
12 #define GUI_INFO 'i'
13 #define GUI_ADDJOB 'a'
14 #define GUI_QUIT 'q'
15 #define GUI_HELP 'h'
16
17 #define DATA_OK (1<<0)
18
19 typedef struct s_client {
20   int channel;
21   unsigned char status;
22 #define IDLE (1<<0)
23 #define WORK (1<<1)
24 } t_client;
25
26 typedef struct s_job {
27   int channel;
28   unsigned char status;
29 #define IN_QUEUE (1<<0)
30 #define IN_WORK (1<<1)
31   int progress;
32   unsigned char *ac;
33   int *cc;
34   int x,y,z;
35   int size;
36   info info;
37   int step;
38 } t_job;
39