Generate bindings for properties in a very similar way as done for controls. We do need to distinguish between the two, and thus I added --properties flag to gen-py-controls.py. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
31 lines
571 B
C++
31 lines
571 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
|
*
|
|
* Python bindings - Auto-generated properties
|
|
*
|
|
* This file is auto-generated. Do not edit.
|
|
*/
|
|
|
|
#include <libcamera/property_ids.h>
|
|
|
|
#include <pybind11/smart_holder.h>
|
|
|
|
namespace py = pybind11;
|
|
|
|
class PyProperties
|
|
{
|
|
};
|
|
|
|
class PyDraftProperties
|
|
{
|
|
};
|
|
|
|
void init_py_properties_generated(py::module& m)
|
|
{
|
|
auto controls = py::class_<PyProperties>(m, "properties");
|
|
auto draft = py::class_<PyDraftProperties>(controls, "draft");
|
|
|
|
${controls}
|
|
}
|