2
* gdm-logout-action.h: GDM logout action protocol implementation
4
* Copyright (C) 2005 Raffaele Sandrini
5
* Copyright (C) 2005 Red Hat, Inc.
6
* Copyright (C) 2002, 2003 George Lebl
7
* Copyright (C) 2001 Queen of England,
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License as
11
* published by the Free Software Foundation; either version 2 of the
12
* License, or (at your option) any later version.
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25
* Raffaele Sandrini <rasa@gmx.ch>
26
* George Lebl <jirka@5z.com>
27
* Mark McLoughlin <mark@skynet.ie>
30
#ifndef __GDM_LOGOUT_ACTION_H__
31
#define __GDM_LOGOUT_ACTION_H__
38
GDM_LOGOUT_ACTION_NONE = 0,
39
GDM_LOGOUT_ACTION_SHUTDOWN = 1 << 0,
40
GDM_LOGOUT_ACTION_REBOOT = 1 << 1,
41
GDM_LOGOUT_ACTION_SUSPEND = 1 << 2,
42
GDM_LOGOUT_ACTION_HIBERNATE = 1 << 3
45
gboolean gdm_supports_logout_action (GdmLogoutAction action);
47
void gdm_set_logout_action (GdmLogoutAction action);
48
GdmLogoutAction gdm_get_logout_action (void);
52
#endif /* __GDM_LOGOUT_ACTION_H__ */