QemuOpts: framework for storing and parsing options.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 22 Jul 2009 14:43:03 +0000 (16:43 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 19:08:23 +0000 (14:08 -0500)
commit07d1e46199de2db71e6fbed3ab539a2521fcc1f4
treebcddf5a894b07e84ebb72de7e439404613ab240b
parent781f71971d4679b7aa3d98ec09855a4be794bdd6
QemuOpts: framework for storing and parsing options.

This stores device parameters in a better way than unparsed strings.

New types:
  QemuOpt       -  one key-value pair.
  QemuOpts      -  group of key-value pairs, belonging to one
                   device, i.e. one drive.
  QemuOptsList  -  list of some kind of devices, i.e. all drives.

Functions are provided to work with these types.  The plan is that some
day we will pass around QemuOpts pointers instead of strings filled with
"key1=value1,key2=value2".

Check out the next patch to see all this in action ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c
qemu-option.h