qemu-e2k/include/qemu
Markus Armbruster 80c710cb06 qemu-img: Move is_valid_option_list() to qemu-img.c and rewrite
is_valid_option_list()'s purpose is ensuring qemu-img.c's can safely
join multiple parameter strings separated by ',' like this:

        g_strdup_printf("%s,%s", params1, params2);

How it does that is anything but obvious.  A close reading of the code
reveals that it fails exactly when its argument starts with ',' or
ends with an odd number of ','.  Makes sense, actually, because when
the argument starts with ',', a separating ',' preceding it would get
escaped, and when it ends with an odd number of ',', a separating ','
following it would get escaped.

Move it to qemu-img.c and rewrite it the obvious way.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200415074927.19897-9-armbru@redhat.com>
2020-04-29 08:01:52 +02:00
..
atomic128.h
atomic.h qemu/atomic.h: add #ifdef guards for stdatomic.h 2020-03-27 13:42:57 +00:00
base64.h
bcd.h
bitmap.h
bitops.h qemu/bitops.h: Add extract8 and extract16 2020-02-25 20:20:23 +00:00
bswap.h
buffer.h
co-shared-resource.h
compiler.h compiler.h: Don't use compile-time assert when __NO_INLINE__ is defined 2020-02-28 10:58:41 -08:00
config-file.h
coroutine_int.h
coroutine.h
cpuid.h util: add util function buffer_zero_avx512() 2020-03-16 23:02:21 +01:00
crc32c.h
ctype.h
cutils.h
dbus.h
drm.h
envlist.h
error-report.h
event_notifier.h
fifo8.h
fifo32.h
filemonitor.h
futex.h
guest-random.h
hbitmap.h block/dirty-bitmap: improve _next_dirty_area API 2020-03-18 14:03:46 -04:00
help_option.h
host-utils.h
id.h
int128.h
iov.h
iova-tree.h
jhash.h
job.h job: refactor progress to separate object 2020-03-11 12:42:30 +01:00
lockable.h lockable: add QemuRecMutex support 2020-03-17 15:18:45 +01:00
log-for-trace.h
log.h
main-loop.h
memfd.h
mmap-alloc.h
module.h migration: Add support for modules 2020-02-28 09:24:43 +01:00
notify.h
nvdimm-utils.h
option_int.h
option.h qemu-img: Move is_valid_option_list() to qemu-img.c and rewrite 2020-04-29 08:01:52 +02:00
osdep.h osdep.h: Drop no-longer-needed Coverity workarounds 2020-04-14 09:44:31 +01:00
path.h
plugin-memory.h
plugin.h
pmem.h
processor.h
progress_meter.h job: refactor progress to separate object 2020-03-11 12:42:30 +01:00
qdist.h
qemu-plugin.h
qemu-print.h
qht.h
qsp.h
queue.h qemu/queue.h: clear linked list pointers on remove 2020-03-09 16:39:20 +00:00
range.h
ratelimit.h
rcu_queue.h
rcu.h
readline.h
selfmap.h linux-user: factor out reading of /proc/self/maps 2020-04-07 16:19:49 +01:00
seqlock.h
sockets.h
stats64.h
sys_membarrier.h
systemd.h
thread-posix.h
thread-win32.h
thread.h thread.h: Remove trailing semicolons from Coverity qemu_mutex_lock() etc 2020-04-14 09:44:31 +01:00
throttle-options.h
throttle.h
timed-average.h
timer.h
typedefs.h
unicode.h
units.h
uri.h
uuid.h
vfio-helpers.h
win_dump_defs.h
xattr.h
xxhash.h