/*
* Copyright (C) 2010-2011 Robert Ancell.
* Author: Robert Ancell <robert.ancell@canonical.com>
*
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2 or version 3 of the License.
* See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
*/
#include "config.h"
#include <string.h>
static gboolean
{
if (!upower_proxy)
{
NULL,
"org.freedesktop.UPower",
"/org/freedesktop/UPower",
"org.freedesktop.UPower",
NULL,
error);
if (!upower_proxy)
return FALSE;
}
NULL,
-1,
NULL,
error);
if (!result)
return default_result;
return function_result;
}
/**
* lightdm_get_can_suspend:
*
* Checks if authorized to do a system suspend.
*
* Return value: #TRUE if can suspend the system
**/
lightdm_get_can_suspend (void)
{
}
/**
* lightdm_suspend:
* @error: return location for a #GError, or %NULL
*
* Triggers a system suspend.
*
* Return value: #TRUE if suspend initiated.
**/
{
}
/**
* lightdm_get_can_hibernate:
*
* Checks if is authorized to do a system hibernate.
*
* Return value: #TRUE if can hibernate the system
**/
lightdm_get_can_hibernate (void)
{
}
/**
* lightdm_hibernate:
* @error: return location for a #GError, or %NULL
*
* Triggers a system hibernate.
*
* Return value: #TRUE if hibernate initiated.
**/
{
}
static gboolean
{
if (!ck_proxy)
{
NULL,
"org.freedesktop.ConsoleKit",
"org.freedesktop.ConsoleKit.Manager",
NULL,
error);
if (!ck_proxy)
return FALSE;
}
NULL,
-1,
NULL,
error);
if (!result)
return default_result;
return function_result;
}
/**
* lightdm_get_can_restart:
*
* Checks if is authorized to do a system restart.
*
* Return value: #TRUE if can restart the system
**/
lightdm_get_can_restart (void)
{
}
/**
* lightdm_restart:
* @error: return location for a #GError, or %NULL
*
* Triggers a system restart.
*
* Return value: #TRUE if restart initiated.
**/
{
}
/**
* lightdm_get_can_shutdown:
*
* Checks if is authorized to do a system shutdown.
*
* Return value: #TRUE if can shutdown the system
**/
lightdm_get_can_shutdown (void)
{
}
/**
* lightdm_shutdown:
* @error: return location for a #GError, or %NULL
*
* Triggers a system shutdown.
*
* Return value: #TRUE if shutdown initiated.
**/
{
}