1
/* $Id: xfsm-global.h 4580 2004-05-25 21:29:04Z benny $ */
3
* Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
#ifndef __XFSM_GLOBAL_H__
23
#define __XFSM_GLOBAL_H__
25
#include <xfce4-session/xfsm-splash-screen.h>
28
typedef struct _FailsafeClient FailsafeClient;
29
struct _FailsafeClient
36
#define DEFAULT_SESSION_NAME "Default"
39
extern gboolean verbose;
40
extern gboolean compat_kde;
41
extern gboolean compat_gnome;
42
extern GList *starting_properties;
43
extern GList *pending_properties;
44
extern GList *restart_properties;
45
extern GList *running_clients;
46
extern gchar *session_name;
47
extern gchar *session_file;
48
extern GList *failsafe_clients;
49
extern gboolean failsafe_mode;
50
extern gint shutdown_type;
51
extern XfsmSplashScreen *splash_screen;
54
#if defined(G_HAVE_ISO_VARARGS)
56
#define xfsm_verbose(...) \
58
if (G_UNLIKELY (verbose)) \
59
xfsm_verbose_real (__VA_ARGS__); \
62
#elif defined(G_HAVE_GNUC_VARARGS)
64
#define xfsm_verbose(format, ...) \
66
if (G_UNLIKELY (verbose)) \
67
xfsm_verbose_real ( ## format); \
72
void xfsm_enable_verbose (void);
73
void xfsm_verbose_real (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
76
#endif /* !__XFSM_GLOBAL_H__ */