*
* Version $Id$
*/
+/*
+ Bacula® - The Network Backup Solution
+
+ Copyright (C) 2002-2006 Free Software Foundation Europe e.V.
+
+ The main author of Bacula is Kern Sibbald, with contributions from
+ many others, a complete list can be found in the file AUTHORS.
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version two of the GNU General Public
+ License as published by the Free Software Foundation plus additions
+ that are listed in the file LICENSE.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of John Walker.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+ Switzerland, email:ftf@fsfeurope.org.
+*/
+
#ifndef __CONSOLE_H_
#define __CONSOLE_H_
extern GtkWidget *text1; /* text window */
extern GtkWidget *entry1; /* entry box */
extern GtkWidget *combo1; /* Directory combo */
-extern GtkWidget *dir_dialog;
+extern GtkWidget *dir_dialog;
extern GtkWidget *dir_select;
-extern GtkWidget *run_dialog; /* run dialog */
-extern GtkWidget *label_dialog;
+extern GtkWidget *run_dialog; /* run dialog */
+extern GtkWidget *label_dialog;
extern GtkWidget *restore_dialog; /* restore dialog */
extern GtkWidget *restore_file_selection; /* restore files dialog */
extern GtkWidget *about1;
#define OK 1
#define CANCEL 0
-void set_textf(char *fmt, ...);
-void set_text(char *buf, int len);
-void set_status(char *buf);
+void set_textf(const char *fmt, ...);
+void set_text(const char *buf, int len);
+void set_status(const char *buf);
void set_status_ready();
-void set_statusf(char *fmt, ...);
+void set_statusf(const char *fmt, ...);
int connect_to_director(gpointer data);
int disconnect_from_director(gpointer data);
void start_director_reader(gpointer data);
void stop_director_reader(gpointer data);
-void write_director(gchar *msg);
-void read_director(gpointer data, gint fd, GdkInputCondition condition);
+void write_director(const gchar *msg);
void set_restore_dialog_defaults();
void select_restore_files();
+extern "C" void read_director(gpointer data, gint fd, GdkInputCondition condition);
+
#endif