diff options
Diffstat (limited to 'src/openbsd/up-backend.c')
-rw-r--r-- | src/openbsd/up-backend.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/openbsd/up-backend.c b/src/openbsd/up-backend.c index 807bb2f..20e86c0 100644 --- a/src/openbsd/up-backend.c +++ b/src/openbsd/up-backend.c @@ -150,6 +150,22 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon) } /** + * up_backend_unplug: + * @backend: The %UpBackend class instance + * + * Forget about all learned devices, effectively undoing up_backend_coldplug. + * Resources are released without emitting signals. + */ +void +up_backend_unplug (UpBackend *backend) +{ + if (backend->priv->daemon != NULL) { + g_object_unref (backend->priv->daemon); + backend->priv->daemon = NULL; + } +} + +/** * up_backend_get_critical_action: * @backend: The %UpBackend class instance * |