| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Copyright (C) 2010-2011 Robert Ancell. |
|---|
| 3 | * Author: Robert Ancell <robert.ancell@canonical.com> |
|---|
| 4 | * |
|---|
| 5 | * This library is free software; you can redistribute it and/or modify it under |
|---|
| 6 | * the terms of the GNU Lesser General Public License as published by the Free |
|---|
| 7 | * Software Foundation; either version 3 of the License, or (at your option) any |
|---|
| 8 | * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the |
|---|
| 9 | * license. |
|---|
| 10 | */ |
|---|
| 11 | |
|---|
| 12 | #ifndef _LIGHTDM_POWER_H_ |
|---|
| 13 | #define _LIGHTDM_POWER_H_ |
|---|
| 14 | |
|---|
| 15 | G_BEGIN_DECLS |
|---|
| 16 | |
|---|
| 17 | gboolean lightdm_get_can_suspend (void); |
|---|
| 18 | |
|---|
| 19 | gboolean lightdm_suspend (GError **error); |
|---|
| 20 | |
|---|
| 21 | gboolean lightdm_get_can_hibernate (void); |
|---|
| 22 | |
|---|
| 23 | gboolean lightdm_hibernate (GError **error); |
|---|
| 24 | |
|---|
| 25 | gboolean lightdm_get_can_restart (void); |
|---|
| 26 | |
|---|
| 27 | gboolean lightdm_restart (GError **error); |
|---|
| 28 | |
|---|
| 29 | gboolean lightdm_get_can_shutdown (void); |
|---|
| 30 | |
|---|
| 31 | gboolean lightdm_shutdown (GError **error); |
|---|
| 32 | |
|---|
| 33 | G_END_DECLS |
|---|
| 34 | |
|---|
| 35 | #endif /* _LIGHTDM_POWER_H_ */ |
|---|