]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/gnome2-console/console.h
kes Convert dbcheck to use 64 bit DB IDs.
[bacula/bacula] / bacula / src / gnome2-console / console.h
1 /*
2  * Bacula GNOME User Agent specific configuration and defines
3  *
4  *     Kern Sibbald, March 2002
5  *
6  *     Version $Id$
7  */
8 /*
9    Bacula® - The Network Backup Solution
10
11    Copyright (C) 2002-2006 Free Software Foundation Europe e.V.
12
13    The main author of Bacula is Kern Sibbald, with contributions from
14    many others, a complete list can be found in the file AUTHORS.
15    This program is Free Software; you can redistribute it and/or
16    modify it under the terms of version two of the GNU General Public
17    License as published by the Free Software Foundation plus additions
18    that are listed in the file LICENSE.
19
20    This program is distributed in the hope that it will be useful, but
21    WITHOUT ANY WARRANTY; without even the implied warranty of
22    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23    General Public License for more details.
24
25    You should have received a copy of the GNU General Public License
26    along with this program; if not, write to the Free Software
27    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28    02110-1301, USA.
29
30    Bacula® is a registered trademark of John Walker.
31    The licensor of Bacula is the Free Software Foundation Europe
32    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
33    Switzerland, email:ftf@fsfeurope.org.
34 */
35
36
37 #ifndef __CONSOLE_H_
38 #define __CONSOLE_H_
39
40 #include "console_conf.h"
41 #include "jcr.h"
42 /* Super kludge for GNOME 2.0 */
43 #undef _
44 #undef N_
45 #undef textdomain
46
47 #include <gnome.h>
48
49 extern GtkWidget *app1;       /* application window */
50 extern GtkWidget *text1;      /* text window */
51 extern GtkWidget *entry1;     /* entry box */
52 extern GtkWidget *combo1;     /* Directory combo */
53 extern GtkWidget *dir_dialog;
54 extern GtkWidget *dir_select;
55 extern GtkWidget *run_dialog;       /* run dialog */
56 extern GtkWidget *label_dialog;
57 extern GtkWidget *restore_dialog;   /* restore dialog */
58 extern GtkWidget *restore_file_selection;   /* restore files dialog */
59 extern GtkWidget *about1;
60 extern GList *job_list, *client_list, *fileset_list;
61 extern GList *messages_list, *pool_list, *storage_list;
62 extern GList *type_list, *level_list;
63
64
65 extern pthread_mutex_t cmd_mutex;
66 extern pthread_cond_t  cmd_wait;
67 extern char cmd[1000];
68 extern int cmd_ready;
69 extern int reply;
70 extern BSOCK *UA_sock;
71
72
73
74 #define OK     1
75 #define CANCEL 0
76
77 void set_textf(const char *fmt, ...);
78 void set_text(const char *buf, int len);
79 void set_status(const char *buf);
80 void set_status_ready();
81 void set_statusf(const char *fmt, ...);
82 int connect_to_director(gpointer data);
83 int disconnect_from_director(gpointer data);
84 void start_director_reader(gpointer data);
85 void stop_director_reader(gpointer data);
86 void write_director(const gchar *msg);
87 void set_restore_dialog_defaults();
88 void select_restore_files();
89
90 extern "C" void read_director(gpointer data, gint fd, GdkInputCondition condition);
91
92 #endif