Exemplo n.º 1
0
func (c *VirConnection) DomainEventDeregister(callbackId int) error {
	// Deregister the callback
	if i := int(C.virConnectDomainEventDeregisterAny(c.ptr, C.int(callbackId))); i != 0 {
		return GetLastError()
	}
	return nil
}
Exemplo n.º 2
0
func (c *VirConnection) DomainEventDeregister(callbackId int) int {
	// Deregister the callback
	return int(C.virConnectDomainEventDeregisterAny(c.ptr, C.int(callbackId)))
}
Exemplo n.º 3
0
func ConnectDomainEventDeregister(conn VirConnection, callbackid int) {
	C.virConnectDomainEventDeregisterAny(conn.ptr, C.int(callbackid))
}
Exemplo n.º 4
0
func (c *VirConnection) DomainEventDeregister(callbackId int) int {
	// Deregister the callback
	ret := int(C.virConnectDomainEventDeregisterAny(c.ptr, C.int(callbackId)))
	delete(c.event_cbs, callbackId)
	return ret
}