Part of lp.hardwaredb.interfaces.hwdb View In Hierarchy
Method | create | Create a new device entry. |
Method | getByDeviceID | Return an IHWDevice record. |
Method | getOrCreate | Return an IHWDevice record or create one. |
Method | getByID | Return an IHWDevice record with the given database ID. |
Method | search | Return HWDevice records matching the given parameters. |
Parameters | bus | A bus name as enumerated in HWBus. |
vendor_id | The vendor ID for the bus. | |
product_id | The product ID. | |
product_name | The human readable product name. | |
variant | A string that allows to distinguish different devices with identical product/vendor IDs. | |
Returns | A new IHWDevice instance. |
Parameters | bus | The bus name of the device as enumerated in HWBus. |
vendor_id | The vendor ID of the device. | |
product_id | The product ID of the device. | |
variant | A string that allows to distinguish different devices with identical product/vendor IDs. | |
Returns | An IHWDevice instance. |
Return an existing IHWDevice record matching the given parameters or create a new one, if no existing record matches.
Parameters | bus | The bus name of the device as enumerated in HWBus. |
vendor_id | The vendor ID of the device. | |
product_id | The product ID of the device. | |
product_name | The human readable product name. | |
variant | A string that allows to distinguish different devices with identical product/vendor IDs. | |
Returns | An IHWDevice instance. |