Beispiel #1
0
func (f *VirNWFilter) GetName() (string, error) {
	name := C.virNWFilterGetName(f.ptr)
	if name == nil {
		return "", GetLastError()
	}
	return C.GoString(name), nil
}
Beispiel #2
0
func (n *NetworkFilter) GetName() (string, error) {
	result := C.virNWFilterGetName(n.cptr)
	if result == nil {
		return "", GetLastError()
	}

	name := C.GoString(result)
	return name, nil
}