commit | f47e9b648aaab716c62bf004fa36176dbe8b21d7 | [log] [tgz] |
---|---|---|
author | Ole Troan <ot@cisco.com> | Tue Oct 16 15:14:03 2018 +0200 |
committer | Florin Coras <florin.coras@gmail.com> | Tue Oct 16 15:27:05 2018 +0000 |
tree | c3e3bf22c570eb33b3fa90d40eca8553657f4e95 | |
parent | 9d428b4315fb7ca7ff79d9b046e77e02939bee45 [diff] |
PAPI: Add bool type support in vppapigen. Change-Id: I9c2eaa2ee04a1c9a92018afb92cb2c5610df2991 Signed-off-by: Ole Troan <ot@cisco.com>
diff --git a/src/vpp-api/python/vpp_papi/vpp_serializer.py b/src/vpp-api/python/vpp_papi/vpp_serializer.py index 103a078..cac6dd6 100644 --- a/src/vpp-api/python/vpp_papi/vpp_serializer.py +++ b/src/vpp-api/python/vpp_papi/vpp_serializer.py
@@ -34,6 +34,7 @@ 'i32': '>i', 'u64': '>Q', 'f64': '>d', + 'bool': '>?', 'header': '>HI'} if elements > 0 and type == 'u8': @@ -58,6 +59,7 @@ types['i32'] = BaseTypes('i32') types['u64'] = BaseTypes('u64') types['f64'] = BaseTypes('f64') +types['bool'] = BaseTypes('bool') class FixedList_u8():