diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-07-15 13:43:33 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-16 17:28:52 -0500 |
commit | 3320e56e54021acab2d6eeb4797ddac30c2411ef (patch) | |
tree | 2b0aeeb8e342d28f55f245e90068908efb39a7c3 /hw/qdev.h | |
parent | b6b611446077537b542c20804d3c850daff27845 (diff) |
qdev: add no_user, alias and desc
no_user: prevent users from adding certain devices.
desc: description of the device.
alias: to allow user friendly shortcuts on the command line, i.e.
-device usbmouse instead of -device "QEMU USB Mouse" or
-device lsi instead of -device lsi53c895a
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -95,8 +95,11 @@ typedef void (*SCSIAttachFn)(DeviceState *host, BlockDriverState *bdrv, struct DeviceInfo { const char *name; + const char *alias; + const char *desc; size_t size; Property *props; + int no_user; /* Private to qdev / bus. */ qdev_initfn init; |