LibvirtGConfig.DomainControllerUsb¶
- Subclasses:
None
Methods¶
- Inherited:
LibvirtGConfig.DomainController (5), LibvirtGConfig.DomainDevice (1), LibvirtGConfig.Object (6), GObject.Object (37)
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class LibvirtGConfig.DomainControllerUsb(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
LibvirtGConfig.DomainControllerUsb
struct is an opaque data structure which is used to configure USB controllers on a domain. It should only be accessed via the following functions.- classmethod new()¶
- Returns:
- Return type:
Creates a new
LibvirtGConfig.DomainControllerUsb
with a reference count of 1.LibvirtGConfig.DomainController.set_index
() must be called before this controller is usable.
- classmethod new_from_xml(xml)¶
- Parameters:
xml (
str
) – xml data to create the controller from- Raises:
- Returns:
a new
LibvirtGConfig.DomainControllerUsb
, orNone
if xml failed to be parsed.- Return type:
Creates a new
LibvirtGConfig.DomainControllerUsb
with a reference count of 1. The controller object will be created using the XML description stored in xml. This is a fragment of libvirt domain XML whose root node is <controller>.
- set_master(master, startport)¶
- Parameters:
master (
LibvirtGConfig.DomainControllerUsb
) – the masterLibvirtGConfig.DomainControllerUsb
startport (
int
) – the start port number
Sets self to be a companion controller of master. self will be exposed from port startport on master in the guest. After this call, self's index will be set to master's index.
- set_model(model)¶
- Parameters:
model (
LibvirtGConfig.DomainControllerUsbModel
) – the USB controller model
Sets the model of self to model.