summaryrefslogtreecommitdiff
path: root/src/up-device.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-01-18 12:57:50 +0000
committerRichard Hughes <richard@hughsie.com>2010-01-18 12:57:50 +0000
commit8d4ec58206cf9939830f567c8aaeed5286e785f7 (patch)
tree49166428b68722338ae861ce40021b492c03bd0d /src/up-device.c
parent6845dc144dedf4b9d730b0437e2d2b1f8f87df4b (diff)
downloadupower-8d4ec58206cf9939830f567c8aaeed5286e785f7.tar.gz
trivial: switch to using the new enum names internally (no ABI or API break)
Diffstat (limited to 'src/up-device.c')
-rw-r--r--src/up-device.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/up-device.c b/src/up-device.c
index 54bc90a..fb8a1a1 100644
--- a/src/up-device.c
+++ b/src/up-device.c
@@ -433,11 +433,11 @@ up_device_get_id (UpDevice *device)
gchar *id = NULL;
/* line power */
- if (device->priv->type == DKP_DEVICE_TYPE_LINE_POWER) {
+ if (device->priv->type == UP_DEVICE_TYPE_LINE_POWER) {
goto out;
/* batteries */
- } else if (device->priv->type == DKP_DEVICE_TYPE_BATTERY) {
+ } else if (device->priv->type == UP_DEVICE_TYPE_BATTERY) {
/* we don't have an ID if we are not present */
if (!device->priv->is_present)
goto out;
@@ -1047,9 +1047,9 @@ up_device_class_init (UpDeviceClass *klass)
PROP_TYPE,
g_param_spec_uint ("type",
NULL, NULL,
- DKP_DEVICE_TYPE_UNKNOWN,
- DKP_DEVICE_TYPE_LAST,
- DKP_DEVICE_TYPE_UNKNOWN,
+ UP_DEVICE_TYPE_UNKNOWN,
+ UP_DEVICE_TYPE_LAST,
+ UP_DEVICE_TYPE_UNKNOWN,
G_PARAM_READWRITE));
/**
* UpDevice:state:
@@ -1058,9 +1058,9 @@ up_device_class_init (UpDeviceClass *klass)
PROP_STATE,
g_param_spec_uint ("state",
NULL, NULL,
- DKP_DEVICE_STATE_UNKNOWN,
- DKP_DEVICE_STATE_LAST,
- DKP_DEVICE_STATE_UNKNOWN,
+ UP_DEVICE_STATE_UNKNOWN,
+ UP_DEVICE_STATE_LAST,
+ UP_DEVICE_STATE_UNKNOWN,
G_PARAM_READWRITE));
/**
* UpDevice:technology:
@@ -1069,9 +1069,9 @@ up_device_class_init (UpDeviceClass *klass)
PROP_TECHNOLOGY,
g_param_spec_uint ("technology",
NULL, NULL,
- DKP_DEVICE_TECHNOLOGY_UNKNOWN,
- DKP_DEVICE_TECHNOLOGY_LAST,
- DKP_DEVICE_TECHNOLOGY_UNKNOWN,
+ UP_DEVICE_TECHNOLOGY_UNKNOWN,
+ UP_DEVICE_TECHNOLOGY_LAST,
+ UP_DEVICE_TECHNOLOGY_UNKNOWN,
G_PARAM_READWRITE));
/**
* UpDevice:capacity: