Re-use the Control generation infrastructure to generate libcamera properties and define the first 'Location' property. Introduce three additional files: - include/libcamera/property_ids.h Defines the properties ids - src/libcamera/property_ids.cpp Defines the properties Control<> instances - src/libcamera/property_ids.yaml Provide the first 'Location' property definition. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
34 lines
525 B
C
34 lines
525 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2019, Google Inc.
|
|
*
|
|
* property_ids.h : Property ID list
|
|
*
|
|
* This file is auto-generated. Do not edit.
|
|
*/
|
|
|
|
#ifndef __LIBCAMERA_PROPERTY_IDS_H__
|
|
#define __LIBCAMERA_PROPERTY_IDS_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <libcamera/controls.h>
|
|
|
|
namespace libcamera {
|
|
|
|
namespace properties {
|
|
|
|
enum {
|
|
${ids}
|
|
};
|
|
|
|
${controls}
|
|
|
|
extern const ControlIdMap properties;
|
|
|
|
} /* namespace propertiess */
|
|
|
|
} /* namespace libcamera */
|
|
|
|
#endif // __LIBCAMERA_PROPERTY_IDS_H__
|