blob: 25b523adb4beb28ad10ad753d4693ce7f4a67bca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* $Id$ */
/*-
* Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
#ifndef __XFSM_GLOBAL_H__
#define __XFSM_GLOBAL_H__
#include <xfce4-session/xfsm-splash-screen.h>
typedef struct _FailsafeClient FailsafeClient;
struct _FailsafeClient
{
gchar **command;
GdkScreen *screen;
};
#define DEFAULT_SESSION_NAME "Default"
extern gboolean verbose;
extern gboolean compat_kde;
extern gboolean compat_gnome;
extern GList *starting_properties;
extern GList *pending_properties;
extern GList *restart_properties;
extern GList *running_clients;
extern gchar *session_name;
extern gchar *session_file;
extern GList *failsafe_clients;
extern gboolean failsafe_mode;
extern gint shutdown_type;
extern XfsmSplashScreen *splash_screen;
#if defined(G_HAVE_ISO_VARARGS)
#define xfsm_verbose(...) \
G_STMT_START{ \
if (G_UNLIKELY (verbose)) \
xfsm_verbose_real (__VA_ARGS__); \
}G_STMT_END
#elif defined(G_HAVE_GNUC_VARARGS)
#define xfsm_verbose(format, ...) \
G_STMT_START{ \
if (G_UNLIKELY (verbose)) \
xfsm_verbose_real ( ## format); \
}G_STMT_END
#endif
void xfsm_enable_verbose (void);
void xfsm_verbose_real (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
#endif /* !__XFSM_GLOBAL_H__ */
|