mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: remove unnecessary indirection for some spa_log_topics
This results in shorter machine code since it removes one pointer load and a NULL check.
This commit is contained in:
parent
d2b5b53c08
commit
8256a2d5a6
13 changed files with 39 additions and 35 deletions
|
|
@ -8,12 +8,12 @@
|
|||
#include <spa/support/log.h>
|
||||
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT alsa_log_topic
|
||||
extern struct spa_log_topic *alsa_log_topic;
|
||||
#define SPA_LOG_TOPIC_DEFAULT &alsa_log_topic
|
||||
extern struct spa_log_topic alsa_log_topic;
|
||||
|
||||
static inline void alsa_log_topic_init(struct spa_log *log)
|
||||
{
|
||||
spa_log_topic_init(log, alsa_log_topic);
|
||||
spa_log_topic_init(log, &alsa_log_topic);
|
||||
}
|
||||
|
||||
#endif /* SPA_ALSA_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue