diff options
author | Richard Hughes <richard@hughsie.com> | 2010-01-18 12:35:47 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-01-18 12:35:47 +0000 |
commit | d2550b4c7854e970719b07b48ecdb61af9c01b6f (patch) | |
tree | 59ba56384fee7aaf7a25857556a6a3dec87c8758 /src/up-device.c | |
parent | 2562bc6aa6fe9b5f422e01c92aef9745bed5204f (diff) | |
download | upower-d2550b4c7854e970719b07b48ecdb61af9c01b6f.tar.gz |
trivial: DkpDaemon -> UpDaemon (no ABI or API break)
Diffstat (limited to 'src/up-device.c')
-rw-r--r-- | src/up-device.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/up-device.c b/src/up-device.c index 2a5d0d6..e8b6e99 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -47,7 +47,7 @@ struct DkpDevicePrivate gchar *object_path; DBusGConnection *system_bus_connection; DBusGProxy *system_bus_proxy; - DkpDaemon *daemon; + UpDaemon *daemon; DkpHistory *history; GObject *native; gboolean has_ever_refresh; @@ -509,9 +509,9 @@ out: /** * dkp_device_get_daemon: * - * Returns a refcounted #DkpDaemon instance, or %NULL + * Returns a refcounted #UpDaemon instance, or %NULL **/ -DkpDaemon * +UpDaemon * dkp_device_get_daemon (DkpDevice *device) { if (device->priv->daemon == NULL) @@ -525,7 +525,7 @@ dkp_device_get_daemon (DkpDevice *device) * Return %TRUE on success, %FALSE if we failed to get data and should be removed **/ gboolean -dkp_device_coldplug (DkpDevice *device, DkpDaemon *daemon, GObject *native) +dkp_device_coldplug (DkpDevice *device, UpDaemon *daemon, GObject *native) { gboolean ret; const gchar *native_path; @@ -605,7 +605,7 @@ dkp_device_get_statistics (DkpDevice *device, const gchar *type, DBusGMethodInvo /* doesn't even try to support this */ if (!device->priv->has_statistics) { - error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "device does not support getting stats"); + error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "device does not support getting stats"); dbus_g_method_return_error (context, error); goto out; } @@ -618,14 +618,14 @@ dkp_device_get_statistics (DkpDevice *device, const gchar *type, DBusGMethodInvo /* maybe the device doesn't support histories */ if (array == NULL) { - error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "device has no statistics"); + error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "device has no statistics"); dbus_g_method_return_error (context, error); goto out; } /* always 101 items of data */ if (array->len != 101) { - error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "statistics invalid as have %i items", array->len); + error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "statistics invalid as have %i items", array->len); dbus_g_method_return_error (context, error); goto out; } @@ -668,7 +668,7 @@ dkp_device_get_history (DkpDevice *device, const gchar *type_string, guint times /* doesn't even try to support this */ if (!device->priv->has_history) { - error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "device does not support getting history"); + error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "device does not support getting history"); dbus_g_method_return_error (context, error); goto out; } @@ -689,7 +689,7 @@ dkp_device_get_history (DkpDevice *device, const gchar *type_string, guint times /* maybe the device doesn't have any history */ if (array == NULL) { - error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "device has no history"); + error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "device has no history"); dbus_g_method_return_error (context, error); goto out; } |