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>
This commit is contained in:
committed by
Laurent Pinchart
parent
7a0a464dd1
commit
a69b73cc58
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user