aboutsummaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-03-15 18:14:51 +0000
committerDaniel P. Berrange <berrange@redhat.com>2012-07-05 10:46:09 +0100
commitc6b2d5d082dc86789cd4b35cfac12d9907042585 (patch)
tree7261e9ead52717781caa0ed0874c1fe8e09e81fe /daemon
parentqemu: Always set auth_supported for Ceph disks. (diff)
downloadlibvirt-c6b2d5d082dc86789cd4b35cfac12d9907042585.tar.gz
libvirt-c6b2d5d082dc86789cd4b35cfac12d9907042585.tar.bz2
libvirt-c6b2d5d082dc86789cd4b35cfac12d9907042585.zip
Add a opaque parameter to the RPC client init callback
The callback that is invoked when a new RPC client is initialized does not have any opaque parameter. Add one so that custom data can be passed into the callback Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/libvirtd.c3
-rw-r--r--daemon/remote.c3
-rw-r--r--daemon/remote.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index 9c06344cf..8c434a0ed 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -1176,7 +1176,8 @@ int main(int argc, char **argv) {
config->keepalive_count,
!!config->keepalive_required,
config->mdns_adv ? config->mdns_name : NULL,
- remoteClientInitHook))) {
+ remoteClientInitHook,
+ NULL))) {
ret = VIR_DAEMON_ERR_INIT;
goto cleanup;
}
diff --git a/daemon/remote.c b/daemon/remote.c
index b8c2aab13..095d854f5 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -640,7 +640,8 @@ static void remoteClientCloseFunc(virNetServerClientPtr client)
int remoteClientInitHook(virNetServerPtr srv ATTRIBUTE_UNUSED,
- virNetServerClientPtr client)
+ virNetServerClientPtr client,
+ void *opaque ATTRIBUTE_UNUSED)
{
struct daemonClientPrivate *priv;
int i;
diff --git a/daemon/remote.h b/daemon/remote.h
index 5444e4786..d3e1b2d46 100644
--- a/daemon/remote.h
+++ b/daemon/remote.h
@@ -36,6 +36,7 @@ extern virNetServerProgramProc qemuProcs[];
extern size_t qemuNProcs;
int remoteClientInitHook(virNetServerPtr srv,
- virNetServerClientPtr client);
+ virNetServerClientPtr client,
+ void *opaque);
#endif /* __LIBVIRTD_REMOTE_H__ */