summaryrefslogtreecommitdiff
path: root/include/libcamera/control_ids.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/control_ids.h.in')
-rw-r--r--include/libcamera/control_ids.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libcamera/control_ids.h.in b/include/libcamera/control_ids.h.in
index 858ef872..5d0594c6 100644
--- a/include/libcamera/control_ids.h.in
+++ b/include/libcamera/control_ids.h.in
@@ -30,11 +30,13 @@ namespace {{vendor}} {
#define LIBCAMERA_HAS_{{vendor|upper}}_VENDOR_{{mode|upper}}
{%- endif %}
+{% if ctrls %}
enum {
{%- for ctrl in ctrls %}
{{ctrl.name|snake_case|upper}} = {{ctrl.id}},
{%- endfor %}
};
+{% endif %}
{% for ctrl in ctrls -%}
{% if ctrl.is_enum -%}