]> xenbits.xensource.com Git - libvirt.git/commit
admin: Add virAdmHello function
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 15 Apr 2015 14:35:42 +0000 (16:35 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Jun 2015 11:46:21 +0000 (13:46 +0200)
commit5792fabb7b712749147e9d03348c798dc1943651
treeb575d69b9ee6dd6653eba6aac59a1a0c2823bbd4
parent6bda9f8aa2cd07a3defda571c7d61401fd66c226
admin: Add virAdmHello function

Just one of the simplest functions that returns string "Clients: X"
where X is the number of connected clients to daemon's first
subserver (the original one), so it can be tested using virsh, ipython,
etc.

The subserver is gathered by incrementing its reference
counter (similarly to getting qemu capabilities), so there is no
deadlock with admin subserver in this API.

Here you can see how functions should be named in the client (virAdm*)
and server (adm*).

There is also a parameter @flags that must be 0, which helps testing
proper error propagation into the client.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
daemon/admin_server.c
include/libvirt/libvirt-admin.h
po/POTFILES.in
src/admin/admin_protocol.x
src/admin_protocol-structs
src/libvirt-admin.c
src/libvirt_admin.syms