diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-05-27 17:44:32 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-27 22:03:44 +0300 |
commit | a69b73cc584e276e967c484a2592b0f47663b541 (patch) | |
tree | 8aff6593b4743bdc9ff04789343220d17724fbe4 /src/py/libcamera/py_properties_generated.cpp.in | |
parent | 7a0a464dd13e3c0c266267dfcae75f5f09434cbf (diff) |
py: Generate bindings for properties
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>
Diffstat (limited to 'src/py/libcamera/py_properties_generated.cpp.in')
-rw-r--r-- | src/py/libcamera/py_properties_generated.cpp.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/py/libcamera/py_properties_generated.cpp.in b/src/py/libcamera/py_properties_generated.cpp.in new file mode 100644 index 00000000..044b2b2a --- /dev/null +++ b/src/py/libcamera/py_properties_generated.cpp.in @@ -0,0 +1,30 @@ +/* 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} +} |