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.
Showing
src/util/command.c
0 → 100644
此差异已折叠。
src/util/command.h
0 → 100644
tests/commanddata/test10.log
0 → 100644
tests/commanddata/test11.log
0 → 100644
tests/commanddata/test12.log
0 → 100644
tests/commanddata/test13.log
0 → 100644
tests/commanddata/test14.log
0 → 100644
tests/commanddata/test15.log
0 → 100644
tests/commanddata/test16.log
0 → 100644
tests/commanddata/test2.log
0 → 100644
tests/commanddata/test3.log
0 → 100644
tests/commanddata/test4.log
0 → 100644
tests/commanddata/test5.log
0 → 100644
tests/commanddata/test6.log
0 → 100644
tests/commanddata/test7.log
0 → 100644
tests/commanddata/test8.log
0 → 100644
tests/commanddata/test9.log
0 → 100644
tests/commandhelper.c
0 → 100644
tests/commandtest.c
0 → 100644