spa: export log topic enumerations

This commit is contained in:
Pauli Virtanen 2023-12-23 21:07:45 +02:00 committed by Wim Taymans
parent fc4dbcd033
commit eaea03c26c
40 changed files with 74 additions and 43 deletions

View file

@ -27,7 +27,7 @@
#undef SPA_LOG_TOPIC_DEFAULT
#define SPA_LOG_TOPIC_DEFAULT &log_topic
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.audioadapter");
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.audioadapter");
#define DEFAULT_ALIGN 16

View file

@ -37,7 +37,7 @@
#undef SPA_LOG_TOPIC_DEFAULT
#define SPA_LOG_TOPIC_DEFAULT &log_topic
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.audioconvert");
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.audioconvert");
#define DEFAULT_RATE 48000
#define DEFAULT_CHANNELS 2

View file

@ -5,10 +5,13 @@
#include <errno.h>
#include <spa/support/plugin.h>
#include <spa/support/log.h>
extern const struct spa_handle_factory spa_audioconvert_factory;
extern const struct spa_handle_factory spa_audioadapter_factory;
SPA_LOG_TOPIC_ENUM_DEFINE_REGISTERED;
SPA_EXPORT
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
{