Finally enable admin API in our code and start distributing it both via a
tarball and as part of an rpm package. I also added some usage examples,
however the html documentation is missing, because of our current xsl
stylesheet, more specifically because of how xsltproc works. It takes a
stylesheet and an xml file which it processes and produces index.html for each
xml file on its input. This way, we either get TOC for libvirt APIs or just the
admin. The same story goes for libvirt-qemu and libvirt-lxc which we neither
generate, nor distribute. I talked to Jirka and we thought about merging the
xmls somehow to a temporary file and then generate the index.html but that
requires some more digging, especially into xslt capabilities. So I haven't
figured this one out yet, but once I do, I'll enable it for all of our *.xml
API 'recipes'.
Erik Skultety (3):
admin: enable both admin API functionality and tarball distribution
examples: admin: Add some examples for the new admin APIs
spec: distribute admin API within libvirt-client package
.gitignore | 6 ++
Makefile.am | 2 +-
cfg.mk | 4 +-
daemon/libvirtd.c | 2 +-
docs/Makefile.am | 5 +-
examples/Makefile.am | 14 +++-
examples/admin/client_close.c | 57 +++++++++++++
examples/admin/client_info.c | 165 +++++++++++++++++++++++++++++++++++++
examples/admin/client_limits.c | 63 ++++++++++++++
examples/admin/list_clients.c | 111 +++++++++++++++++++++++++
examples/admin/list_servers.c | 42 ++++++++++
examples/admin/threadpool_params.c | 65 +++++++++++++++
include/libvirt/Makefile.am | 6 +-
libvirt.spec.in | 14 ++--
src/libvirt_admin_public.syms | 2 +-
15 files changed, 538 insertions(+), 20 deletions(-)
create mode 100644 examples/admin/client_close.c
create mode 100644 examples/admin/client_info.c
create mode 100644 examples/admin/client_limits.c
create mode 100644 examples/admin/list_clients.c
create mode 100644 examples/admin/list_servers.c
create mode 100644 examples/admin/threadpool_params.c
--
2.5.5