block: Split out parse_json_protocol()
authorKevin Wolf <kwolf@redhat.com>
Thu, 29 Oct 2015 14:24:41 +0000 (15:24 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:43 +0000 (14:34 +0100)
commitde3b53f00761d32b7363f25135b0807d8927c0ec
tree2b5825b50a1dad54c472e7f35520904ef9453af5
parent8e2160e2c75522554647e197e8b61622d6cf076f
block: Split out parse_json_protocol()

The next patch distinguishes options that were explicitly set and
options that were derived. bdrv_fill_option() added options of both
types: Options given by json: syntax should be counted as explicit, but
the rest is derived.

In preparation for the distinction, move json: parse to a separate
function.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c