summaryrefslogtreecommitdiff
path: root/liblightdm-gobject/lightdm/power.h
blob: 7d37c1c6aca48f97d03eaadd3a2b4ff8d1ff1869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (C) 2010-2011 Robert Ancell.
 * Author: Robert Ancell <robert.ancell@canonical.com>
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3 of the License, or (at your option) any
 * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
 * license.
 */

#ifndef _LIGHTDM_POWER_H_
#define _LIGHTDM_POWER_H_

gboolean lightdm_get_can_suspend (void);

void lightdm_suspend (void);

gboolean lightdm_get_can_hibernate (void);

void lightdm_hibernate (void);

gboolean lightdm_get_can_restart (void);

void lightdm_restart (void);

gboolean lightdm_get_can_shutdown (void);

void lightdm_shutdown (void);

G_END_DECLS

#endif /* _LIGHTDM_POWER_H_ */