projects
/
physik
/
nlsop.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
network related fixes + debug printfs (will get removed)
[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
16
#define DATA_OK (1<<0)
17
18
typedef struct s_client {
19
int channel;
20
unsigned char status;
21
#define IDLE (1<<0)
22
#define WORK (1<<1)
23
} t_client;
24
25
typedef struct s_job {
26
int channel;
27
unsigned char status;
28
#define IN_QUEUE (1<<0)
29
#define IN_WORK (1<<1)
30
int progress;
31
unsigned char *ac;
32
int *cc;
33
int x,y,z;
34
int size;
35
info info;
36
int step;
37
} t_job;
38