summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-24 16:26:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-26 12:07:11 +0300
commita2e27f4f2b849f0095a822be686b9612e727a122 (patch)
treefd60c1d5b551cd53cd01a60354e4331597810120 /.clang-format
parent885c48028fe2a484844278c1b884f984797e2c5b (diff)
py: libcamera: Move function declarations to common header
The init_py_*() functions are called by the top-level entry point of the libcamera Python module to initialize different parts of the bindings. They are declared in py_main.cpp where they are called, and defined in separate compilation units. This results in functions being defined without a corresponding declaration, and will generate warnings when we enable -Wmissing-declarations. Fix this by moving the function declarations from py_main.c to py_main.h, and including py_main.h in the various compilation units that need it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions