Add ability to register callback for virCommand dry run
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 7 Mar 2014 11:39:48 +0000 (11:39 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Mar 2014 10:47:58 +0000 (10:47 +0000)
commit7b3f1f8c30588f71c1722fb5003795ca84eaade8
tree68a64060c44666c894ddbe8bfd12b941ad2ab7ce
parentdf3a681c0399f22a58f838b4b0056ede778aab82
Add ability to register callback for virCommand dry run

To allow for fault injection of the virCommand dry run,
add the ability to register a callback. The callback will
be passed the argv, env and stdin buffer and is expected
to return the exit status and optionally fill stdout and
stderr buffers.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/vircommand.c
src/util/vircommand.h
src/util/vircommandpriv.h
tests/virkmodtest.c
tests/virnetdevbandwidthtest.c