diff options
Diffstat (limited to 'src/up-device.c')
-rw-r--r-- | src/up-device.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/up-device.c b/src/up-device.c index 685be80..01b9f56 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -722,6 +722,22 @@ bail: } /** + * up_device_unplug: + * + * Initiates destruction of %UpDevice, undoing the effects of + * up_device_coldplug. + */ +void +up_device_unplug (UpDevice *device) +{ + /* break circular dependency */ + if (device->priv->daemon != NULL) { + g_object_unref (device->priv->daemon); + device->priv->daemon = NULL; + } +} + +/** * up_device_register_display_device: **/ gboolean |