| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Use "libvirt not compiled with JSON support" instead of mentioning
yajl specifically.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Right-aligning backslashes when defining macros or using complex
commands in Makefiles looks cute, but as soon as any changes is
required to the code you end up with either distractingly broken
alignment or unnecessarily big diffs where most of the changes
are just pushing all backslashes a few characters to one side.
Generated using
$ git grep -El '[[:blank:]][[:blank:]]\\$' | \
grep -E '*\.([chx]|am|mk)$$' | \
while read f; do \
sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
done
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
|
|
|
| |
We use the "vir" prefix pretty consistently in our
APIs, both external and internal, which made these
macros stood out.
|
|
|
|
|
|
| |
Add support for converting objects nested in arrays with a numbering
discriminator on the command line. This syntax is used for the
object-based specification of disk source properties.
|
|
|
|
|
|
| |
The function would generate a leading comma. Let the callers properly
add commas by formatting the commas at the end and trimming the trailing
one.
|
|
|
|
|
|
|
|
|
|
| |
For use with memory hotplug virQEMUBuildCommandLineJSONRecurse attempted
to format JSON arrays as bitmap on the command line. Make the formatter
function configurable so that it can be reused with different syntaxes
of arrays such as numbered arrays for use with disk sources.
This patch extracts the code and adds a parameter for the function that
will allow to plug in different formatters.
|
|
|
|
|
| |
Move the iterator of objects to the recursive function so that nested
objects are supported by flattening the structure with '.' delimiters.
|
|
|
|
|
|
| |
Until now the JSON->commandline convertor was used only for objects
created by qemu. To allow reusing it with disk formatter we'll need to
escape ',' as usual in qemu commandlines.
|
|
|
|
|
|
|
|
|
|
| |
Refactor the command line generator by adding a wrapper (with
documentation) that will handle the outermost object iteration.
This patch also renames the functions and tweaks the error message for
nested arrays to be more universal.
The new function is then reused to simplify qemucommandutiltest.
|
|
|
|
| |
This function doesn't follow our convention of naming functions.
|
|
|
|
| |
This function doesn't follow our convention of naming functions.
|
|
|
|
| |
This function doesn't follow our convention of naming functions.
|
|
|
|
|
|
|
|
|
|
| |
Move the module from qemu_command.c to a new module virqemu.c and
rename the API to virQEMUBuildObjectCommandline.
This API will then be shareable with qemu-img and the need to build
a security object for luks support.
Signed-off-by: John Ferlan <jferlan@redhat.com>
|
|
|
|
| |
Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
|
|
Unlike -device, qemu uses a JSON object to add backend "objects" via the
monitor rather than the string that would be passed on the commandline.
To be able to reuse code parts that configure backends for various
devices, this patch adds a helper that will allow generating the command
line representations from the JSON property object.
|