Back to index

lightdm  1.3.2
power.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Robert Ancell.
00003  * Author: Robert Ancell <robert.ancell@canonical.com>
00004  *
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License as published by the Free
00007  * Software Foundation; either version 3 of the License, or (at your option) any
00008  * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
00009  * license.
00010  */
00011 
00012 #ifndef _LIGHTDM_POWER_H_
00013 #define _LIGHTDM_POWER_H_
00014 
00015 G_BEGIN_DECLS
00016 
00017 gboolean lightdm_get_can_suspend (void);
00018 
00019 gboolean lightdm_suspend (GError **error);
00020 
00021 gboolean lightdm_get_can_hibernate (void);
00022 
00023 gboolean lightdm_hibernate (GError **error);
00024 
00025 gboolean lightdm_get_can_restart (void);
00026 
00027 gboolean lightdm_restart (GError **error);
00028 
00029 gboolean lightdm_get_can_shutdown (void);
00030 
00031 gboolean lightdm_shutdown (GError **error);
00032 
00033 G_END_DECLS
00034 
00035 #endif /* _LIGHTDM_POWER_H_ */