]> git.ipfire.org Git - thirdparty/libvirt.git/commit
event: remove unneeded virObjectEventGetEventID
authorEric Blake <eblake@redhat.com>
Thu, 2 Jan 2014 14:40:50 +0000 (07:40 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 3 Jan 2014 17:55:42 +0000 (10:55 -0700)
commit344e1f51305c922ee442344de596e945d4e436ce
tree09130756f20296cdb015ef2316459b905f95ce7d
parent6742fb0b10be753c65a045f17db29231c4ad685b
event: remove unneeded virObjectEventGetEventID

Any file with access to object_event_private.h also has access to
the internals of virObjectEvent, without needing an accessor
function.  Not to mention the accessor function was doing type
checks that would always succeed.

* src/conf/object_event_private.h (virObjectEventGetEventID): Drop.
* src/conf/object_event.c (virObjectEventGetEventID): Drop.
(virObjectEventDispatchMatchCallback): Simplify caller.
* src/conf/domain_event.c (virDomainEventDispatchDefaultFunc):
Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/conf/domain_event.c
src/conf/object_event.c
src/conf/object_event_private.h