mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
modules: add log topics to module-protocol-pulse
This ends up using a nested namespace: mod.protocol-pulse for the module itself, mod.protocol-pulse.foo for the various submodules and extensions.
This commit is contained in:
parent
96f8a7597e
commit
52a96bb602
41 changed files with 301 additions and 97 deletions
|
|
@ -43,6 +43,11 @@
|
|||
|
||||
#define NAME "protocol-pulse"
|
||||
|
||||
PW_LOG_TOPIC(mod_topic, "mod." NAME);
|
||||
#define PW_LOG_TOPIC_DEFAULT mod_topic
|
||||
PW_LOG_TOPIC(pulse_ext_dev_restore, "mod." NAME ".device-restore");
|
||||
PW_LOG_TOPIC(pulse_ext_stream_restore, "mod." NAME ".stream-restore");
|
||||
|
||||
#define MODULE_USAGE PW_PROTOCOL_PULSE_USAGE
|
||||
|
||||
static const struct spa_dict_item module_props[] = {
|
||||
|
|
@ -88,6 +93,12 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
struct impl *impl;
|
||||
int res;
|
||||
|
||||
PW_LOG_TOPIC_INIT(mod_topic);
|
||||
/* it's easier to init these here than adding an init() call to the
|
||||
* extensions */
|
||||
PW_LOG_TOPIC_INIT(pulse_ext_dev_restore);
|
||||
PW_LOG_TOPIC_INIT(pulse_ext_stream_restore);
|
||||
|
||||
impl = calloc(1, sizeof(struct impl));
|
||||
if (impl == NULL)
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue