summaryrefslogtreecommitdiffstats
path: root/python_modules/ptypes.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-08 13:07:17 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:47 +0100
commit74f9cd9f731f33c8c435fafcf3bada7ef0661470 (patch)
treeac21aab0c28d036605a3242d9cf02281d88dbea0 /python_modules/ptypes.py
parent2952d5bd9a7bc21cff4d4035b597682339dc02cf (diff)
downloadspice-protocol-74f9cd9f731f33c8c435fafcf3bada7ef0661470.tar.gz
spice-protocol-74f9cd9f731f33c8c435fafcf3bada7ef0661470.tar.xz
spice-protocol-74f9cd9f731f33c8c435fafcf3bada7ef0661470.zip
codegen: No SPICE_ADDRESS types left, drop @c_ptr
Diffstat (limited to 'python_modules/ptypes.py')
-rw-r--r--python_modules/ptypes.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 715544f..5e18aa3 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -60,7 +60,7 @@ class FixedSize:
# only to attributes that affect pointer or array attributes, as these
# are member local types, unlike e.g. a Struct that may be used by
# other members
-propagated_attributes=["ptr_array", "c_ptr", "nonnull", "chunk"]
+propagated_attributes=["ptr_array", "nonnull", "chunk"]
class Type:
def __init__(self):
@@ -469,7 +469,10 @@ class PointerType(Type):
return self.pointer_size
def c_type(self):
- return "SPICE_ADDRESS"
+ if self.pointer_size == 4:
+ return "uint32_t"
+ else:
+ return "uint64_t"
def has_pointer(self):
return True