trivial: Export the matching fu_udev_device_set_dev()

This commit is contained in:
Richard Hughes 2021-06-24 11:15:32 +01:00
parent 8ae988dda8
commit 9a2e10c639
3 changed files with 14 additions and 1 deletions

View File

@ -494,7 +494,17 @@ fu_udev_device_get_miscdev0 (FuUdevDevice *self)
} }
#endif #endif
static void /**
* fu_udev_device_set_dev:
* @self: a #FuUdevDevice
* @udev_device: a #GUdevDevice
*
* Sets the #GUdevDevice. This may need to be used to replace the actual device
* used for reads and writes before the device is probed.
*
* Since: 1.6.2
**/
void
fu_udev_device_set_dev (FuUdevDevice *self, GUdevDevice *udev_device) fu_udev_device_set_dev (FuUdevDevice *self, GUdevDevice *udev_device)
{ {
FuUdevDevicePrivate *priv = GET_PRIVATE (self); FuUdevDevicePrivate *priv = GET_PRIVATE (self);

View File

@ -50,6 +50,8 @@ typedef enum {
FuUdevDevice *fu_udev_device_new (GUdevDevice *udev_device); FuUdevDevice *fu_udev_device_new (GUdevDevice *udev_device);
GUdevDevice *fu_udev_device_get_dev (FuUdevDevice *self); GUdevDevice *fu_udev_device_get_dev (FuUdevDevice *self);
void fu_udev_device_set_dev (FuUdevDevice *self,
GUdevDevice *udev_device);
const gchar *fu_udev_device_get_device_file (FuUdevDevice *self); const gchar *fu_udev_device_get_device_file (FuUdevDevice *self);
const gchar *fu_udev_device_get_sysfs_path (FuUdevDevice *self); const gchar *fu_udev_device_get_sysfs_path (FuUdevDevice *self);
const gchar *fu_udev_device_get_subsystem (FuUdevDevice *self); const gchar *fu_udev_device_get_subsystem (FuUdevDevice *self);

View File

@ -831,5 +831,6 @@ LIBFWUPDPLUGIN_1.6.2 {
fu_i2c_device_read_full; fu_i2c_device_read_full;
fu_i2c_device_set_bus_number; fu_i2c_device_set_bus_number;
fu_i2c_device_write_full; fu_i2c_device_write_full;
fu_udev_device_set_dev;
local: *; local: *;
} LIBFWUPDPLUGIN_1.6.1; } LIBFWUPDPLUGIN_1.6.1;