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

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

The set of vendor IDs.
Method create Create a vendor ID.
Method getByBusAndVendorID Return an IHWVendorID instance for the given bus and vendor_id.
Method get Return an IHWVendorID record with the given database ID.
Method idsForBus Return all known IHWVendorID records with the given bus.
def create(bus, vendor_id, name):
Create a vendor ID.
Parametersbusthe HWBus instance for this bus.
vendor_ida string containing the bus ID. Numeric IDs are represented as a hexadecimal string, prepended by '0x'.
nameThe IHWVendorName instance with the vendor name.
ReturnsA new IHWVendorID instance.
def getByBusAndVendorID(bus, vendor_id):
Return an IHWVendorID instance for the given bus and vendor_id.
ParametersbusAn HWBus instance.
vendor_idA string containing the vendor ID. Numeric IDs must be represented as a hexadecimal string, prepended by '0x'.
ReturnsThe found IHWVendorID instance or None, if no instance for the given bus and vendor ID exists.
def get(id):
Return an IHWVendorID record with the given database ID.
ParametersidThe database ID.
ReturnsAn IHWVendorID instance.
def idsForBus(bus):
Return all known IHWVendorID records with the given bus.
ParametersbusA HWBus instance.
ReturnsA sequence of IHWVendorID instances.
API Documentation for Launchpad, generated by pydoctor at 2019-04-20 00:00:04.