[libvirt] [PATCH 4/7] Add a sysinfo util module and read host info API
Daniel Veillard
veillard at redhat.com
Fri Nov 5 15:46:35 UTC 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-a-sysinfo-util-module-and-read-host-info-API.patch
Type: text/x-patch
Size: 13135 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101105/d344c4d5/attachment-0001.bin>
More information about the libvir-list
mailing list