]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xen: reduce callback special cases
authorEric Blake <eblake@redhat.com>
Thu, 21 Jul 2011 20:26:47 +0000 (14:26 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 28 Jul 2011 20:44:24 +0000 (14:44 -0600)
commit03e5f8bbbfda2d9975eb4122aa30ee78ea6969cf
treed7da1ed211f6098ba8f59c86a929b929d6269e92
parentf859919fed0e63e060b2444a8a9059c8d326618d
xen: reduce callback special cases

The callback struct is great when iterating through several
possibilities, but when calling a known callback, it's just
overhead.  We can make the direct call in those cases.

* src/xen/xen_driver.c (xenUnifiedOpen, xenUnifiedDomainSuspend)
(xenUnifiedDomainResume, xenUnifiedDomainDestroyFlags): Make
direct calls instead of going through callback.
src/xen/xen_driver.c