]> git.proxmox.com Git - qemu.git/commit - qemu-option.c
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)
commite27c88fe9eb26648e4fb282cb3761c41f06ff18a
treebcddf5a894b07e84ebb72de7e439404613ab240b
parent7695019bce7f0b552203229e7b89494462ac286f
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