summaryrefslogtreecommitdiff
path: root/src/dkp-wup.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-11-07 12:26:47 +0000
committerRichard Hughes <richard@hughsie.com>2008-11-07 12:26:47 +0000
commiteded5b20fc7b609f846a46c347b25109a40191a5 (patch)
tree75a193f5d0445c27c75d3a696779450299db1978 /src/dkp-wup.c
parentf5ea862a06a43c804fa23f289727132602c851b3 (diff)
feature: all logging for all the other device types too
Diffstat (limited to 'src/dkp-wup.c')
-rw-r--r--src/dkp-wup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dkp-wup.c b/src/dkp-wup.c
index a1ccace..519310c 100644
--- a/src/dkp-wup.c
+++ b/src/dkp-wup.c
@@ -405,6 +405,10 @@ dkp_wup_coldplug (DkpDevice *device)
obj->power_supply = FALSE;
obj->is_present = FALSE;
obj->vendor = g_strdup (devkit_device_get_property (d, "ID_VENDOR"));
+ obj->model = g_strdup (devkit_device_get_property (d, "ID_PRODUCT"));
+ obj->serial = g_strstrip (sysfs_get_string (obj->native_path, "serial"));
+ obj->has_history = TRUE;
+ obj->state = DKP_DEVICE_STATE_DISCHARGING;
/* coldplug */
egg_debug ("coldplug");