]> xenbits.xensource.com Git - libvirt.git/commit
rpc: simplify calling convention of virNetServerClientDispatchFunc
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 6 Mar 2018 16:44:34 +0000 (16:44 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Mar 2018 15:40:29 +0000 (15:40 +0000)
commitc6f1d5190bbe62dae6b32081c0edd141ee19e82f
tree308346e2db3701fd9868ef4d1f14ceded6f3e0fc
parent464889fff8174f560316c998f9f38814c9a57771
rpc: simplify calling convention of virNetServerClientDispatchFunc

Currently virNetServerClientDispatchFunc implementations are only
responsible for free'ing the "msg" parameter upon success. Simplify the
calling convention by making it their unconditional responsibility to
free the "msg", and close the client if desired.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/virnetserver.c
src/rpc/virnetserverclient.c
src/rpc/virnetserverclient.h