]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce new APIs for spawning processes
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 25 May 2010 11:14:06 +0000 (12:14 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 2 Dec 2010 23:00:44 +0000 (16:00 -0700)
commitf16ad06fb2aeb5e5c9974b20d91800d1f6b5cc1d
tree3142609ab0a3b6d3c917be8d0de8e05ccf625f6f
parentfce3baee26715676c7c670c620cd87999706a4c7
Introduce new APIs for spawning processes

This introduces a new set of APIs in src/util/command.h
to use for invoking commands. This is intended to replace
all current usage of virRun and virExec variants, with a
more flexible and less error prone API.

* src/util/command.c: New file.
* src/util/command.h: New header.
* src/Makefile.am (UTIL_SOURCES): Build it.
* src/libvirt_private.syms: Export symbols internally.
* tests/commandtest.c: New test.
* tests/Makefile.am (check_PROGRAMS): Run it.
* tests/commandhelper.c: Auxiliary program.
* tests/commanddata/test2.log - test15.log: New expected outputs.
* cfg.mk (useless_free_options): Add virCommandFree.
(msg_gen_function): Add virCommandError.
* po/POTFILES.in: New translation.
* .x-sc_avoid_write: Add exemption.
* tests/.gitignore: Ignore new built file.
26 files changed:
.x-sc_avoid_write
cfg.mk
po/POTFILES.in
src/Makefile.am
src/libvirt_private.syms
src/util/command.c [new file with mode: 0644]
src/util/command.h [new file with mode: 0644]
tests/.gitignore
tests/Makefile.am
tests/commanddata/test10.log [new file with mode: 0644]
tests/commanddata/test11.log [new file with mode: 0644]
tests/commanddata/test12.log [new file with mode: 0644]
tests/commanddata/test13.log [new file with mode: 0644]
tests/commanddata/test14.log [new file with mode: 0644]
tests/commanddata/test15.log [new file with mode: 0644]
tests/commanddata/test16.log [new file with mode: 0644]
tests/commanddata/test2.log [new file with mode: 0644]
tests/commanddata/test3.log [new file with mode: 0644]
tests/commanddata/test4.log [new file with mode: 0644]
tests/commanddata/test5.log [new file with mode: 0644]
tests/commanddata/test6.log [new file with mode: 0644]
tests/commanddata/test7.log [new file with mode: 0644]
tests/commanddata/test8.log [new file with mode: 0644]
tests/commanddata/test9.log [new file with mode: 0644]
tests/commandhelper.c [new file with mode: 0644]
tests/commandtest.c [new file with mode: 0644]