示例#1
0
func (n *VirInterface) Free() error {
	if result := C.virInterfaceFree(n.ptr); result != 0 {
		return GetLastError()
	}
	return nil
}
示例#2
0
func cleanupInterface(vinterface *Interface) {
	C.virInterfaceFree(vinterface.cptr)
}