Esempio n. 1
0
func init() {
	C.virSetErrorFunc(nil, C.virErrorFunc(unsafe.Pointer(C.errorGlobalCallback_cgo)))
}
Esempio n. 2
0
func init() {
	// libvirt won't print to stderr
	C.virSetErrorFunc(nil, C.virErrorFunc(unsafe.Pointer(C.virErrorFuncDummy)))
}
Esempio n. 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)))
}