]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/csprint.h
Some Win32 fixes
[bacula/bacula] / bacula / src / wx-console / csprint.h
index b84d99a72df58a577aa95dfe1d7d3ebdca549054..ce0975d41e76f5d27ba37e7c6d93d6084cb4dc25 100644 (file)
 #ifndef CSPRINT_H
 #define CSPRINT_H
 
-#define CS_DATA   1 /* data has been received */
-#define CS_END    2 /* no data to receive anymore */
-#define CS_DEBUG  3 /* used to print debug messages */
+#define CS_DATA          1 /* data has been received */
+#define CS_END           2 /* no data to receive anymore */
+#define CS_PROMPT        3 /* prompt signal received */
+#define CS_CONNECTED     4 /* the socket is now connected */
+#define CS_DISCONNECTED  5 /* the socket is now disconnected */
+#define CS_DEBUG        10 /* used to print debug messages */
+#define CS_TERMINATED   99 /* used to signal that the thread is terminated */
 
 /* function called by console_thread to send events back to the GUI */
-void csprint(char* str, int status=CS_DATA);
+void csprint(const char* str, int status=CS_DATA);
 
 #endif