mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Previously, `log-patterns.c` was included in two other source files (`journal.c` and `logger.c`). It was also specified in the sources list for the libspa-support library, which resulted in the unnecessary independent compilation of the file, generating "defined but not used" warnings. Extract the function definitions into `log-patterns.h` and use that in `journal.c` and `logger.c`, and remove the inclusion of `log-patterns.c` from both.
13 lines
385 B
C
13 lines
385 B
C
#ifndef LOG_PATTERNS_H
|
|
#define LOG_PATTERNS_H
|
|
|
|
#include <spa/support/log.h>
|
|
|
|
struct spa_list;
|
|
|
|
void support_log_topic_init(struct spa_list *patterns, enum spa_log_level default_level,
|
|
struct spa_log_topic *t);
|
|
int support_log_parse_patterns(struct spa_list *patterns, const char *jsonstr);
|
|
void support_log_free_patterns(struct spa_list *patterns);
|
|
|
|
#endif /* LOG_PATTERNS_H */
|