mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
spa: export log topic enumerations
This commit is contained in:
parent
fc4dbcd033
commit
eaea03c26c
40 changed files with 74 additions and 43 deletions
|
|
@ -22,7 +22,8 @@
|
|||
#include <spa/utils/names.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.cpu");
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.cpu");
|
||||
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@
|
|||
#include <spa/support/plugin.h>
|
||||
#include <spa/support/dbus.h>
|
||||
|
||||
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.dbus");
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.dbus");
|
||||
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,12 @@
|
|||
#include <spa/utils/ringbuffer.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.loop");
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.loop");
|
||||
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
|
||||
|
||||
#define MAX_ALIGN 8
|
||||
#define ITEM_ALIGN 8
|
||||
#define DATAS_SIZE (4096*8)
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include <spa/support/plugin.h>
|
||||
#include <spa/support/log.h>
|
||||
|
||||
extern const struct spa_handle_factory spa_support_logger_factory;
|
||||
extern const struct spa_handle_factory spa_support_system_factory;
|
||||
|
|
@ -14,6 +15,8 @@ extern const struct spa_handle_factory spa_support_loop_factory;
|
|||
extern const struct spa_handle_factory spa_support_node_driver_factory;
|
||||
extern const struct spa_handle_factory spa_support_null_audio_sink_factory;
|
||||
|
||||
SPA_LOG_TOPIC_ENUM_DEFINE_REGISTERED;
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
#include <spa/utils/names.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
static struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.system");
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.system");
|
||||
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue