[libvirt] [PATCH 4/7] Add a sysinfo util module and read host info API
Daniel P. Berrange
berrange at redhat.com
Mon Nov 8 13:25:06 UTC 2010
On Fri, Nov 05, 2010 at 04:46:35PM +0100, Daniel Veillard wrote:
>
> Move existing routines about virSysinfoDef to an util module,
> add a new entry point virSysinfoRead() to read the host values
> with dmidecode
>
> * src/conf/domain_conf.c src/conf/domain_conf.h src/util/sysinfo.c
> src/util/sysinfo.h: move to a new module, add virSysinfoRead()
> * src/Makefile.am: handle the new module build
> * src/libvirt_private.syms: new internal symbols
> * include/libvirt/virterror.h src/util/virterror.c: defined a new
> error code for that module
> * po/POTFILES.in: add new file for translations
>
> Signed-off-by: Daniel Veillard <veillard at redhat.com>
> ---
> include/libvirt/virterror.h | 3 +-
> po/POTFILES.in | 1 +
> src/Makefile.am | 1 +
> src/conf/domain_conf.c | 19 ----
> src/conf/domain_conf.h | 25 +-----
> src/libvirt_private.syms | 5 +
> src/util/sysinfo.c | 236 +++++++++++++++++++++++++++++++++++++++++++
> src/util/sysinfo.h | 58 +++++++++++
> src/util/virterror.c | 3 +
> 9 files changed, 307 insertions(+), 44 deletions(-)
> create mode 100644 src/util/sysinfo.c
> create mode 100644 src/util/sysinfo.h
ACK
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list