]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: refactor way connection object is generated for remote dispatch
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Mar 2018 11:12:08 +0000 (11:12 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Apr 2018 14:23:34 +0000 (15:23 +0100)
commit3c9ba9c1cd1f10ab2353a45afd9a99e1f8c359c0
tree0734572d15fb26610221a375d9a616a8c6802897
parentc09c3408d3978a7e65792199dff91c4699a0912f
rpc: refactor way connection object is generated for remote dispatch

Calling a push_privconn method to directly push the connection object
name into the arg list is inconvenient. Refactor so that we acquire
the connection variable name upfront, and push it to the arg list
separately. This allows various hardcoded usage of "priv->conn" to
be parameterized.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/gendispatch.pl