diff options
author | Laszlo Ersek <lersek@redhat.com> | 2012-07-17 16:17:07 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-07-23 11:55:17 +0100 |
commit | 092705d4eb6779060661c8d521d0314e9571773f (patch) | |
tree | 9697234d18f92997e766f57cbfadfd67fb9f8efe /scripts | |
parent | c46f18ce2b6dae531d72f61cf8441110c7936e70 (diff) |
qapi: introduce "size" type
v1->v2:
- fall back to uint64 rather than int
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qapi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qapi.py b/scripts/qapi.py index 1292476a7d..8082af3fcd 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -163,6 +163,8 @@ def c_type(name): name == 'int64' or name == 'uint8' or name == 'uint16' or name == 'uint32' or name == 'uint64'): return name + '_t' + elif name == 'size': + return 'uint64_t' elif name == 'bool': return 'bool' elif name == 'number': |