On Fri, 23 Sept 2022 at 04:47, Sanjay Sheth <
ssh...@logitech.com> wrote:
> Use fu_device_new/g_object_new to create FuUsbDevice on the fly!
I think what you're asking for is the analogous function to:
GUdevDevice *fu_usb_device_find_udev_device(FuUsbDevice *device, GError **error)
i.e. a way to get the GUsbDevice from a FuUdevDevice -- correct? If
so, that's not easy, as we need the GUsbContext to call
g_usb_context_find_by_bus_address() which the FuUdevDevice obviously
doesn't have. Maybe it's okay to just call g_usb_context_new() like
the usb device calls g_udev_client_new()? That's certainly the easiest
option. Can you try that and see if it works in practice?
Richard.