libcamera: Support draft controls and properties

Extend the control and property framework to support exposing draft
controls and properties in a scoped namespace.

The controls/properties themselves will retain the same ordering in the
relevant enum/id maps - but the access to any draft control will require
explicitly referencing through its' draft:: namespace prefix.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
[Added missing hunk in control_ids.cpp.in and changed subject]
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Kieran Bingham 2020-10-07 19:57:18 +01:00 committed by Jacopo Mondi
parent 581bb27495
commit 89916a486c
5 changed files with 73 additions and 8 deletions

View file

@ -26,6 +26,12 @@ ${controls}
extern const ControlIdMap controls;
namespace draft {
${draft_controls}
} /* namespace draft */
} /* namespace controls */
} /* namespace libcamera */

View file

@ -24,6 +24,12 @@ ${ids}
${controls}
namespace draft {
${draft_controls}
} /* namespace draft */
extern const ControlIdMap properties;
} /* namespace properties */