InterfaceCreate is the go wrapper for REMOTE_PROC_INTERFACE_CREATE.
(Iface Interface, Flags uint32)
| 8401 | |
| 8402 | // InterfaceCreate is the go wrapper for REMOTE_PROC_INTERFACE_CREATE. |
| 8403 | func (l *Libvirt) InterfaceCreate(Iface Interface, Flags uint32) (err error) { |
| 8404 | var buf []byte |
| 8405 | |
| 8406 | args := InterfaceCreateArgs { |
| 8407 | Iface: Iface, |
| 8408 | Flags: Flags, |
| 8409 | } |
| 8410 | |
| 8411 | buf, err = encode(&args) |
| 8412 | if err != nil { |
| 8413 | return |
| 8414 | } |
| 8415 | |
| 8416 | |
| 8417 | _, err = l.requestStream(133, constants.Program, buf, nil, nil) |
| 8418 | if err != nil { |
| 8419 | return |
| 8420 | } |
| 8421 | |
| 8422 | return |
| 8423 | } |
| 8424 | |
| 8425 | // InterfaceDestroy is the go wrapper for REMOTE_PROC_INTERFACE_DESTROY. |
| 8426 | func (l *Libvirt) InterfaceDestroy(Iface Interface, Flags uint32) (err error) { |
nothing calls this directly
no test coverage detected