1 /* eggsmclient-private.h
2 * Copyright (C) 2007 Novell, Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef __EGG_SM_CLIENT_PRIVATE_H__
21 #define __EGG_SM_CLIENT_PRIVATE_H__
25 #if !GTK_CHECK_VERSION(2,91,7) && !GTK_CHECK_VERSION(3,0,0)
26 /* GTK+ 3 includes this automatically */
27 #include <gdkconfig.h>
30 #include "eggsmclient.h"
34 GKeyFile *egg_sm_client_save_state (EggSMClient *client);
35 void egg_sm_client_quit_requested (EggSMClient *client);
36 void egg_sm_client_quit_cancelled (EggSMClient *client);
37 void egg_sm_client_quit (EggSMClient *client);
39 #if defined (GDK_WINDOWING_X11)
40 # ifdef EGG_SM_CLIENT_BACKEND_XSMP
41 GType egg_sm_client_xsmp_get_type (void);
42 EggSMClient *egg_sm_client_xsmp_new (void);
44 # ifdef EGG_SM_CLIENT_BACKEND_DBUS
45 GType egg_sm_client_dbus_get_type (void);
46 EggSMClient *egg_sm_client_dbus_new (void);
48 #elif defined (GDK_WINDOWING_WIN32)
49 GType egg_sm_client_win32_get_type (void);
50 EggSMClient *egg_sm_client_win32_new (void);
51 #elif defined (GDK_WINDOWING_QUARTZ)
52 GType egg_sm_client_osx_get_type (void);
53 EggSMClient *egg_sm_client_osx_new (void);
59 #endif /* __EGG_SM_CLIENT_PRIVATE_H__ */