l.h.i.h.IHWDeviceSet(Interface) : interface documentation

Part of lp.hardwaredb.interfaces.hwdb View In Hierarchy

The set of devices.
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.
def create(bus, vendor_id, product_id, product_name, variant=None):
Create a new device entry.
ParametersbusA bus name as enumerated in HWBus.
vendor_idThe vendor ID for the bus.
product_idThe product ID.
product_nameThe human readable product name.
variantA string that allows to distinguish different devices with identical product/vendor IDs.
ReturnsA new IHWDevice instance.
def getByDeviceID(bus, vendor_id, product_id, variant=None):
Return an IHWDevice record.
ParametersbusThe bus name of the device as enumerated in HWBus.
vendor_idThe vendor ID of the device.
product_idThe product ID of the device.
variantA string that allows to distinguish different devices with identical product/vendor IDs.
ReturnsAn IHWDevice instance.
def getOrCreate(bus, vendor_id, product_id, product_name, variant=None):
Return an IHWDevice record or create one.

Return an existing IHWDevice record matching the given parameters or create a new one, if no existing record matches.

ParametersbusThe bus name of the device as enumerated in HWBus.
vendor_idThe vendor ID of the device.
product_idThe product ID of the device.
product_nameThe human readable product name.
variantA string that allows to distinguish different devices with identical product/vendor IDs.
ReturnsAn IHWDevice instance.
def getByID(id):
Return an IHWDevice record with the given database ID.
ParametersidThe database ID.
ReturnsAn IHWDevice instance.
def search(bus, vendor_id, product_id=None):
Return HWDevice records matching the given parameters.
Parametersvendor_idThe vendor ID of the device.
product_idThe product ID of the device.
ReturnsA sequence of IHWDevice instances.
API Documentation for Launchpad, generated by pydoctor at 2018-11-19 00:00:14.