Index: mojo/nacl/generator/interface_dsl.py |
diff --git a/mojo/nacl/generator/interface_dsl.py b/mojo/nacl/generator/interface_dsl.py |
index dfc85aa3914d7d7f85ac56bd9dcd4f96d22eaf18..3d1ff322c17ffc9b1c94fb1351b246772eb1a5e8 100644 |
--- a/mojo/nacl/generator/interface_dsl.py |
+++ b/mojo/nacl/generator/interface_dsl.py |
@@ -56,6 +56,7 @@ class Param(object): |
self.is_output = False |
self.is_array = False |
self.is_struct = False |
+ self.is_extensible = False |
Mark Seaborn
2014/12/08 22:24:12
Can you explain somewhere what is_extensible/ExtSt
Nick Bray (chromium)
2014/12/09 22:14:31
Done.
|
self.is_optional = False |
def GetSizeParam(self): |
@@ -76,11 +77,12 @@ class Param(object): |
self.is_array = True |
return self |
- def InStruct(self, ty): |
+ def InExtStruct(self, ty): |
self.base_type = ty |
self.param_type = 'const struct ' + ty + '*' |
self.is_input = True |
self.is_struct = True |
+ self.is_extensible = True |
return self |
def InOut(self, ty): |
@@ -104,6 +106,14 @@ class Param(object): |
self.is_output = True |
return self |
+ def OutFixedStruct(self, ty): |
+ self.base_type = ty |
+ self.param_type = 'struct ' + ty + '*' |
+ self.is_output = True |
+ self.is_struct = True |
+ self.is_extensible = False |
+ return self |
+ |
def Optional(self): |
assert not self.IsPassedByValue() |
self.is_optional = True |