mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-02 19:31:18 +00:00
af4dad0fa2
The current qemudRegisterClientEvent() code is used both for registering the initial socket watch, and updating the already registered watch. This causes unneccessary complexity in alot of code which only cares about updating existing watches. The updating of a watch cannot ever fail, nor is a reference to the 'qemud_server' object required. This introduces a new qemudUpdateClientEvent() method for that case, allowing the elimination of unneccessary error checking and removal of the server back-reference in struct qemud_client. * qemud/qemud.h: Remove 'server' field from struct qemud_client. Add qemudUpdateClientEvent() method. Remove 'update' param from qemudRegisterClientEvent method * qemud/dispatch.c, qemud/qemud.c, qemud/remote.c: Update alot of code to use qemudUpdateClientEvent() instead of qemudRegisterClientEvent(). Move more logic from remoteRelayDomainEvent into remoteDispatchDomainEventSend. |
||
---|---|---|
.. | ||
.gitignore | ||
default-network.xml | ||
dispatch.c | ||
dispatch.h | ||
event.c | ||
event.h | ||
libvirtd_qemu.aug | ||
libvirtd.aug | ||
libvirtd.conf | ||
libvirtd.init.in | ||
libvirtd.logrotate.in | ||
libvirtd.policy | ||
libvirtd.sasl | ||
libvirtd.sysconf | ||
Makefile.am | ||
mdns.c | ||
mdns.h | ||
qemud.c | ||
qemud.h | ||
remote_dispatch_args.h | ||
remote_dispatch_prototypes.h | ||
remote_dispatch_ret.h | ||
remote_dispatch_table.h | ||
remote_generate_stubs.pl | ||
remote_protocol.c | ||
remote_protocol.h | ||
remote_protocol.x | ||
remote.c | ||
remote.h | ||
rpcgen_fix.pl | ||
test_libvirtd_qemu.aug | ||
test_libvirtd.aug | ||
THREADING.txt |