[PATCH 2/2] Check that we are at least using glib that supports logind

Alberto Milone alberto.milone at canonical.com
Thu Sep 4 09:00:59 UTC 2014


On 03/09/14 17:15, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/src/fwts_pm_method.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/lib/src/fwts_pm_method.c b/src/lib/src/fwts_pm_method.c
> index 9aed8b1..00f870b 100644
> --- a/src/lib/src/fwts_pm_method.c
> +++ b/src/lib/src/fwts_pm_method.c
> @@ -170,6 +170,9 @@ static bool logind_can_do_action(fwts_pm_method_vars *fwts_settings, const char*
>  	bool status = false;
>  	gchar *response;
>  
> +	if (glib_check_version(2, 26, 0) != NULL)
> +		return false;
> +
>  	if (fwts_logind_init_proxy(fwts_settings) != 0)
>  		return false;
>  
> 

Acked-by: Alberto Milone <alberto.milone at canonical.com>

-- 
Alberto Milone
Software Engineer
Hardware Enablement Team
Professional and Engineering Services



More information about the fwts-devel mailing list