From 1eeb870a2d7acf24a391854d9fc6ca571feefc5f Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Wed, 30 Mar 2022 22:32:40 +0200 Subject: [PATCH] ipc: Add float to supported types in proto --- src/xrt/ipc/shared/ipcproto/common.py | 3 ++- src/xrt/ipc/shared/proto.schema.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xrt/ipc/shared/ipcproto/common.py b/src/xrt/ipc/shared/ipcproto/common.py index fd73c3405..4acdce8bb 100644 --- a/src/xrt/ipc/shared/ipcproto/common.py +++ b/src/xrt/ipc/shared/ipcproto/common.py @@ -56,7 +56,8 @@ class Arg: SCALAR_TYPES = set(("uint32_t", "int64_t", "uint64_t", - "bool")) + "bool", + "float")) AGGREGATE_RE = re.compile(r"((const )?struct|union) (xrt|ipc)_[a-z_]+") ENUM_RE = re.compile(r"enum xrt_[a-z_]+") diff --git a/src/xrt/ipc/shared/proto.schema.json b/src/xrt/ipc/shared/proto.schema.json index c291edabc..9f0653751 100644 --- a/src/xrt/ipc/shared/proto.schema.json +++ b/src/xrt/ipc/shared/proto.schema.json @@ -13,7 +13,8 @@ "uint32_t", "int64_t", "uint64_t", - "bool" + "bool", + "float" ] }, "aggregate": {