summaryrefslogtreecommitdiff
path: root/utils/ipc/generators
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ipc/generators')
-rw-r--r--utils/ipc/generators/mojom_libcamera_generator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/ipc/generators/mojom_libcamera_generator.py b/utils/ipc/generators/mojom_libcamera_generator.py
index effdfed6..c609f4e5 100644
--- a/utils/ipc/generators/mojom_libcamera_generator.py
+++ b/utils/ipc/generators/mojom_libcamera_generator.py
@@ -129,6 +129,9 @@ def GetAllAttrs(element):
def NeedsControlSerializer(element):
types = GetAllTypes(element)
+ for type in ['ControlList', 'ControlInfoMap']:
+ if f'x:{type}' in types:
+ raise Exception(f'Unknown type "{type}" in {element.mojom_name}, did you mean "libcamera.{type}"?')
return "ControlList" in types or "ControlInfoMap" in types
def HasFd(element):