예제 #1
0
파일: error.go 프로젝트: hyperhq/runv
func init() {
	C.virSetErrorFunc(nil, C.virErrorFunc(unsafe.Pointer(C.errorGlobalCallback_cgo)))
}
예제 #2
0
func init() {
	// libvirt won't print to stderr
	C.virSetErrorFunc(nil, C.virErrorFunc(unsafe.Pointer(C.virErrorFuncDummy)))
}
예제 #3
0
func init() {
	// Supress the native error output. There's no way to do this per
	// connection, so we have to do this globally.
	C.virSetErrorFunc(nil, C.virErrorFunc(unsafe.Pointer(C.emptyErrorFunc)))
}