summaryrefslogtreecommitdiff
path: root/src/dkp-wup.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-26 15:51:35 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-26 15:51:35 +0100
commitb5022f451a4f7c1829e63843935bd578d2a4feb0 (patch)
treedb950c1815fb66c73abf81ffc5e59c9b0aa40196 /src/dkp-wup.c
parent44745b550520c00dfcee7ac61646e01689881e87 (diff)
remove the battery- and line-power- prefix from the device properties
Diffstat (limited to 'src/dkp-wup.c')
-rw-r--r--src/dkp-wup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dkp-wup.c b/src/dkp-wup.c
index 39ed373..51aa1e1 100644
--- a/src/dkp-wup.c
+++ b/src/dkp-wup.c
@@ -251,8 +251,8 @@ dkp_wup_parse_command (DkpWup *wup, const gchar *data)
/* update the command fields */
if (command == '?' && subcommand == '-') {
- obj->battery_energy_rate = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_WATTS], NULL);
-// obj->battery_volts = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_VOLTS], NULL);
+ obj->energy_rate = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_WATTS], NULL);
+// obj->volts = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_VOLTS], NULL);
} else {
dkp_debug ("ignoring command '%c'", command);
}
@@ -322,9 +322,9 @@ dkp_wup_coldplug (DkpDevice *device)
/* hardcode some values */
obj->type = DKP_DEVICE_TYPE_MONITOR;
- obj->battery_is_rechargeable = FALSE;
+ obj->is_rechargeable = FALSE;
obj->power_supply = FALSE;
- obj->battery_is_present = FALSE;
+ obj->is_present = FALSE;
obj->vendor = g_strdup (devkit_device_get_property (d, "ID_VENDOR"));
/* coldplug everything */