mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-30 13:14:16 -04:00
spa: libcamera: compile fully as C++
There was one file "libcamera.c" that was a C source file, which prevents the addition of C++ functions, includes, etc. to "libcamera.h". So compile that file as C++ as well.
This commit is contained in:
parent
d46361a1b9
commit
390a4ce432
6 changed files with 11 additions and 11 deletions
|
|
@ -1,28 +0,0 @@
|
|||
/* Spa libcamera support */
|
||||
/* SPDX-FileCopyrightText: Copyright © 2020 collabora */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <spa/support/log.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
extern const struct spa_handle_factory spa_libcamera_source_factory;
|
||||
extern const struct spa_handle_factory spa_libcamera_manager_factory;
|
||||
extern const struct spa_handle_factory spa_libcamera_device_factory;
|
||||
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &libcamera_log_topic
|
||||
extern struct spa_log_topic libcamera_log_topic;
|
||||
|
||||
static inline void libcamera_log_topic_init(struct spa_log *log)
|
||||
{
|
||||
spa_log_topic_init(log, &libcamera_log_topic);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
Loading…
Add table
Add a link
Reference in a new issue