3 * csprint header file, used by console_thread to send events back to the GUI.
5 * Nicolas Boichat, April 2004
10 Bacula® - The Network Backup Solution
12 Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
14 The main author of Bacula is Kern Sibbald, with contributions from
15 many others, a complete list can be found in the file AUTHORS.
16 This program is Free Software; you can redistribute it and/or
17 modify it under the terms of version two of the GNU General Public
18 License as published by the Free Software Foundation plus additions
19 that are listed in the file LICENSE.
21 This program is distributed in the hope that it will be useful, but
22 WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 General Public License for more details.
26 You should have received a copy of the GNU General Public License
27 along with this program; if not, write to the Free Software
28 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
31 Bacula® is a registered trademark of John Walker.
32 The licensor of Bacula is the Free Software Foundation Europe
33 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
34 Switzerland, email:ftf@fsfeurope.org.
40 #define CS_DATA 1 /* data has been received */
41 #define CS_END 2 /* no data to receive anymore */
42 #define CS_PROMPT 3 /* prompt signal received */
43 #define CS_CONNECTED 4 /* the socket is now connected */
44 #define CS_DISCONNECTED 5 /* the socket is now disconnected */
46 #define CS_REMOVEPROMPT 6 /* remove the prompt (#), when automatic messages are comming */
48 #define CS_DEBUG 10 /* used to print debug messages */
49 #define CS_TERMINATED 99 /* used to signal that the thread is terminated */
51 /* function called by console_thread to send events back to the GUI */
54 void csprint(const char* str, int status=CS_DATA);
55 void csprint(wxString str, int status=CS_DATA);