DomainHostdevPci.from_xml


Description:

[ CCode ( has_construct_function = false ) ]
public DomainHostdevPci.from_xml (string xml) throws Error

Creates a new DomainHostdevPci.

The host device object will be created using the XML description stored in xml. This is a fragment of libvirt domain XML whose root node is <hostdev>.

Parameters:

xml

xml data to create the host device from

Returns:

a new DomainHostdevPci, or NULL if xml failed to be parsed. The returned object should be unreffed with unref when no longer needed.