summaryrefslogtreecommitdiff
path: root/src/dkp-hid.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-05-27 15:47:06 +0100
committerRichard Hughes <richard@hughsie.com>2009-05-27 15:47:06 +0100
commit70a5fce8a4da9b9b000c86cd9c2ae668d1025850 (patch)
tree83e8c583cba2418be6a65e4fcddfa6bb094840b3 /src/dkp-hid.c
parent0ff31760f9be79af57a000e60ec757c4b6e55805 (diff)
Fix up the return statuses from coldplug and refresh, as different modules are doing different things
Diffstat (limited to 'src/dkp-hid.c')
-rw-r--r--src/dkp-hid.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dkp-hid.c b/src/dkp-hid.c
index 4e4991b..374bd3f 100644
--- a/src/dkp-hid.c
+++ b/src/dkp-hid.c
@@ -281,6 +281,8 @@ dkp_hid_get_all_data (DkpHid *hid)
/**
* dkp_hid_coldplug:
+ *
+ * Return %TRUE on success, %FALSE if we failed to get data and should be removed
**/
static gboolean
dkp_hid_coldplug (DkpDevice *device)
@@ -351,6 +353,8 @@ out:
/**
* dkp_hid_refresh:
+ *
+ * Return %TRUE on success, %FALSE if we failed to refresh or no data
**/
static gboolean
dkp_hid_refresh (DkpDevice *device)
@@ -370,7 +374,7 @@ dkp_hid_refresh (DkpDevice *device)
/* read any data -- it's okay if there's nothing as we are non-blocking */
rd = read (hid->priv->fd, ev, sizeof (ev));
if (rd < (int) sizeof (ev[0])) {
- ret = TRUE;
+ ret = FALSE;
goto out;
}