In order to deserialise a ControlList, we will need to lookup ControlId instances based on their numerical ID. Generate a global map from the controls definitions to support such a lookup. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Tested-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
33 lines
513 B
C
33 lines
513 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2019, Google Inc.
|
|
*
|
|
* control_ids.h : Control ID list
|
|
*
|
|
* This file is auto-generated. Do not edit.
|
|
*/
|
|
|
|
#ifndef __LIBCAMERA_CONTROL_IDS_H__
|
|
#define __LIBCAMERA_CONTROL_IDS_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <libcamera/controls.h>
|
|
|
|
namespace libcamera {
|
|
|
|
namespace controls {
|
|
|
|
enum {
|
|
${ids}
|
|
};
|
|
|
|
${controls}
|
|
|
|
extern const ControlIdMap controls;
|
|
|
|
} /* namespace controls */
|
|
|
|
} /* namespace libcamera */
|
|
|
|
#endif // __LIBCAMERA_CONTROL_IDS_H__
|