Commit 6591417f authored by Christian Kellner's avatar Christian Kellner
Browse files

device: update_from_udev helper

parent e26da047
......@@ -758,6 +758,19 @@ bolt_device_is_connected (BoltDevice *device)
return device->status > BOLT_STATUS_CONNECTING;
}
BoltStatus
bolt_device_update_from_udev (BoltDevice *dev,
struct udev_device *udev)
{
BoltStatus status = bolt_status_from_udev (udev);
g_object_set (G_OBJECT (dev),
"status", status,
NULL);
return status;
}
guint
bolt_device_get_key (BoltDevice *dev)
{
......
......@@ -57,6 +57,9 @@ BoltStatus bolt_device_disconnected (BoltDevice *dev);
gboolean bolt_device_is_connected (BoltDevice *device);
BoltStatus bolt_device_update_from_udev (BoltDevice *dev,
struct udev_device *udev);
gboolean bolt_device_authorize (BoltDevice *dev,
AuthCallback callback,
gpointer user_data,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment