mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: export log topic enumerations
This commit is contained in:
parent
fc4dbcd033
commit
eaea03c26c
40 changed files with 74 additions and 43 deletions
|
|
@ -18,7 +18,7 @@ struct impl {
|
|||
uint32_t channels;
|
||||
};
|
||||
|
||||
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.aec.null");
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.aec.null");
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
|
||||
|
|
@ -137,6 +137,8 @@ static const struct spa_handle_factory spa_aec_null_factory = {
|
|||
impl_enum_interface_info,
|
||||
};
|
||||
|
||||
SPA_LOG_TOPIC_ENUM_DEFINE_REGISTERED;
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ struct impl_data {
|
|||
std::unique_ptr<float *[]> play_buffer, rec_buffer, out_buffer;
|
||||
};
|
||||
|
||||
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.eac.webrtc");
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.eac.webrtc");
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
|
||||
|
|
@ -391,6 +391,10 @@ static const struct spa_handle_factory spa_aec_webrtc_factory = {
|
|||
impl_enum_interface_info,
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
SPA_LOG_TOPIC_ENUM_DEFINE_REGISTERED;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue