summaryrefslogtreecommitdiff
path: root/dma-helpers.c
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2017-02-24 10:30:33 -0500
committerJeff Cody <jcody@redhat.com>2017-02-28 11:32:06 -0500
commit7830f909981361a3d694f4899d5cd7b159841d9e (patch)
tree2a546418ac7c1a883ea0554165fe6d5052cd5ba7 /dma-helpers.c
parentc8c0a1a784cdf70ecea50e93213137c6c89337a7 (diff)
downloadqemu-7830f909981361a3d694f4899d5cd7b159841d9e.zip
block/rbd: don't copy strings in qemu_rbd_next_tok()
This patch is prep work for parsing options for .bdrv_parse_filename, and using QDict options. The function qemu_rbd_next_tok() searched for various key/value pairs, and copied them into buffers. This will soon be an unnecessary extra step, so we will now return found strings by reference only, and offload the responsibility for safely handling/coping these strings to the caller. This also cleans up error handling some, as the callers now rely on the Error object to determine if there is a parse error. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'dma-helpers.c')
0 files changed, 0 insertions, 0 deletions