~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to xfce4-session/xfsm-global.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2005-11-06 22:01:12 UTC
  • mto: (4.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051106220112-5rusox237ymjghsp
Tags: upstream-4.2.3
ImportĀ upstreamĀ versionĀ 4.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: xfsm-global.h 4580 2004-05-25 21:29:04Z benny $ */
 
2
/*-
 
3
 * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
 
4
 * All rights reserved.
 
5
 *
 
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)
 
9
 * any later version.
 
10
 *                                                                              
 
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.
 
15
 *                                                                              
 
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
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __XFSM_GLOBAL_H__
 
23
#define __XFSM_GLOBAL_H__
 
24
 
 
25
#include <xfce4-session/xfsm-splash-screen.h>
 
26
 
 
27
 
 
28
typedef struct _FailsafeClient FailsafeClient;
 
29
struct _FailsafeClient
 
30
{
 
31
  gchar    **command;
 
32
  GdkScreen *screen;
 
33
};
 
34
  
 
35
 
 
36
#define DEFAULT_SESSION_NAME "Default"
 
37
 
 
38
 
 
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;
 
52
 
 
53
 
 
54
#if defined(G_HAVE_ISO_VARARGS)
 
55
 
 
56
#define xfsm_verbose(...)             \
 
57
G_STMT_START{                         \
 
58
  if (G_UNLIKELY (verbose))           \
 
59
    xfsm_verbose_real (__VA_ARGS__);  \
 
60
}G_STMT_END
 
61
 
 
62
#elif defined(G_HAVE_GNUC_VARARGS)
 
63
 
 
64
#define xfsm_verbose(format, ...)     \
 
65
G_STMT_START{                         \
 
66
  if (G_UNLIKELY (verbose))           \
 
67
    xfsm_verbose_real ( ## format);   \
 
68
}G_STMT_END
 
69
  
 
70
#endif
 
71
 
 
72
void xfsm_enable_verbose (void);
 
73
void xfsm_verbose_real (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
 
74
 
 
75
 
 
76
#endif /* !__XFSM_GLOBAL_H__ */