From 80634cfbe85377b7d85d1368af6f97d3dd7b46bb Mon Sep 17 00:00:00 2001 From: Alexander Jesner Date: Sat, 23 Aug 2014 20:28:02 +0200 Subject: [PATCH] Added prototypes in up-device.h and fixed warning. --- src/up-device.c | 2 +- src/up-device.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/up-device.c b/src/up-device.c index 6f6cc13..23a21be 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -938,7 +938,7 @@ up_device_set_notify_handler_id (UpDevice *device, gulong handler_id) gulong up_device_get_notify_handler_id (UpDevice *device) { - g_return_val_if_fail (UP_IS_DEVICE (device), NULL); + g_return_val_if_fail (UP_IS_DEVICE (device), 0); return device->priv->notify_handler_id; } diff --git a/src/up-device.h b/src/up-device.h index 53415e7..afe6055 100644 --- a/src/up-device.h +++ b/src/up-device.h @@ -85,6 +85,8 @@ gboolean up_device_get_on_battery (UpDevice *device, gboolean up_device_get_online (UpDevice *device, gboolean *online); gboolean up_device_refresh_internal (UpDevice *device); +gulong up_device_get_notify_handler_id (UpDevice *device); +void up_device_set_notify_handler_id (UpDevice *device, gulong handler_id); /* exported methods */ gboolean up_device_refresh (UpDevice *device, -- 2.1.0