diff options
author | Klement Sekera <ksekera@cisco.com> | 2018-05-03 14:27:42 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-05-04 07:22:12 +0000 |
commit | 8b6b5ab7dba7cb5fe738c887e27c65bee6a2f600 (patch) | |
tree | fd01e7c690d260eda1794b145c4cfb15384dd757 /src/vpp-api/vapi/vapi_c_gen.py | |
parent | dbc38ee7e53ca9bf7e6912a950a802c2db87f47d (diff) |
VAPI: support VLAs in type definitions
Change-Id: I8d54415972d6644190857175b0e895c5319ce7b6
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vpp-api/vapi/vapi_c_gen.py')
-rwxr-xr-x | src/vpp-api/vapi/vapi_c_gen.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/vpp-api/vapi/vapi_c_gen.py b/src/vpp-api/vapi/vapi_c_gen.py index eaa22c5bc03..b85f1e9d248 100755 --- a/src/vpp-api/vapi/vapi_c_gen.py +++ b/src/vpp-api/vapi/vapi_c_gen.py @@ -9,15 +9,6 @@ from vapi_json_parser import Field, Struct, Message, JsonParser,\ class CField(Field): - def __init__( - self, - field_name, - field_type, - array_len=None, - nelem_field=None): - super(CField, self).__init__( - field_name, field_type, array_len, nelem_field) - def get_c_def(self): if self.len is not None: return "%s %s[%d]" % (self.type.get_c_name(), self.name, self.len) @@ -67,9 +58,6 @@ class CField(Field): class CStruct(Struct): - def __init__(self, name, fields): - super(CStruct, self).__init__(name, fields) - def duplicate_barrier(func): def func_wrapper(self): name = self.get_c_name() @@ -99,9 +87,6 @@ class CSimpleType (SimpleType): 'i64': 'be64toh', 'u64': 'be64toh', } - def __init__(self, name): - super(CSimpleType, self).__init__(name) - def get_c_name(self): return self.name @@ -129,9 +114,6 @@ class CSimpleType (SimpleType): class CStructType (StructType, CStruct): - def __init__(self, definition, typedict, field_class): - super(CStructType, self).__init__(definition, typedict, field_class) - def get_c_name(self): return "vapi_type_%s" % self.name |