hughsie / libgusb

GUsb is a GObject wrapper for libusb1
GNU Lesser General Public License v2.1
25 stars 21 forks source link

Serialize the GUsbDevice to and from JSON format #68

Closed hughsie closed 2 years ago

hughsie commented 2 years ago

This allows us to write tests that mock up entire devices.

hughsie commented 2 years ago

@nacho I'm no 100% sold on save() and load() -- other ideas welcome!

hughsie commented 2 years ago

It might also make sense to unexport g_usb_device_load() as I think people using this feature will just be using the context functions.