diff options
| author | Eric Blake | 2016-02-09 22:27:16 +0100 |
|---|---|---|
| committer | Michael Roth | 2016-02-25 16:48:50 +0100 |
| commit | 0b4b49387cce8358783a493004b77c1603b34b5c (patch) | |
| tree | debae516d511132c0a7155aa62148c26615666af /scripts/switch-timer-api | |
| parent | Merge remote-tracking branch 'remotes/bkoppelmann/tags/pull-tricore-20160225'... (diff) | |
| download | qemu-0b4b49387cce8358783a493004b77c1603b34b5c.tar.gz qemu-0b4b49387cce8358783a493004b77c1603b34b5c.tar.xz qemu-0b4b49387cce8358783a493004b77c1603b34b5c.zip | |
qga: Support enum names in guest-file-seek
Magic constants are a pain to use, especially when we run the
risk that our choice of '1' for QGA_SEEK_CUR might differ from
the host or guest's choice of SEEK_CUR. Better is to use an
enum value, via a qapi alternate type for back-compatibility.
With this,
{"command":"guest-file-seek", "arguments":{"handle":1,
"offset":0, "whence":"cur"}}
becomes a synonym for the older
{"command":"guest-file-seek", "arguments":{"handle":1,
"offset":0, "whence":1}}
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
