From f47e9b648aaab716c62bf004fa36176dbe8b21d7 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Tue, 16 Oct 2018 15:14:03 +0200 Subject: PAPI: Add bool type support in vppapigen. Change-Id: I9c2eaa2ee04a1c9a92018afb92cb2c5610df2991 Signed-off-by: Ole Troan --- src/vpp-api/python/vpp_papi/vpp_serializer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vpp-api/python') diff --git a/src/vpp-api/python/vpp_papi/vpp_serializer.py b/src/vpp-api/python/vpp_papi/vpp_serializer.py index 103a078cd5b..cac6dd61791 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 @@ class BaseTypes(): 'i32': '>i', 'u64': '>Q', 'f64': '>d', + 'bool': '>?', 'header': '>HI'} if elements > 0 and type == 'u8': @@ -58,6 +59,7 @@ types['u32'] = BaseTypes('u32') types['i32'] = BaseTypes('i32') types['u64'] = BaseTypes('u64') types['f64'] = BaseTypes('f64') +types['bool'] = BaseTypes('bool') class FixedList_u8(): -- cgit 1.2.3-korg