Exemple #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
}
Exemple #2
0
func (c *VirConnection) DomainEventDeregister(callbackId int) int {
	// Deregister the callback
	return int(C.virConnectDomainEventDeregisterAny(c.ptr, C.int(callbackId)))
}
Exemple #3
0
func ConnectDomainEventDeregister(conn VirConnection, callbackid int) {
	C.virConnectDomainEventDeregisterAny(conn.ptr, C.int(callbackid))
}
Exemple #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
}