added general header file
authorhackbard <hackbard>
Thu, 4 Nov 2004 00:20:16 +0000 (00:20 +0000)
committerhackbard <hackbard>
Thu, 4 Nov 2004 00:20:16 +0000 (00:20 +0000)
nlsop_general.h [new file with mode: 0644]

diff --git a/nlsop_general.h b/nlsop_general.h
new file mode 100644 (file)
index 0000000..e72dac3
--- /dev/null
@@ -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;
+