mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
modules: switch protocol-native to the new logging system
This is more complicated than a normal module because we have two logging topics: mod.protocol-native and conn.protocol-native for wire messages. Because the latter use spa_debug (through spa_debug_pod) we need to #define our way around so those too use the right topics. Note that this removes the previous "connection" category, it is now "conn.protocol-native" instead.
This commit is contained in:
parent
14112fd168
commit
96f8a7597e
6 changed files with 58 additions and 32 deletions
|
|
@ -32,6 +32,10 @@
|
|||
|
||||
#include "connection.h"
|
||||
|
||||
#define NAME "protocol-native"
|
||||
PW_LOG_TOPIC(mod_topic, "mod." NAME);
|
||||
PW_LOG_TOPIC(mod_topic_connection, "conn." NAME);
|
||||
|
||||
static void test_create(struct pw_protocol_native_connection *conn)
|
||||
{
|
||||
const struct pw_protocol_native_message *msg;
|
||||
|
|
@ -190,6 +194,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
pw_init(&argc, &argv);
|
||||
|
||||
PW_LOG_TOPIC_INIT(mod_topic);
|
||||
PW_LOG_TOPIC_INIT(mod_topic_connection);
|
||||
|
||||
loop = pw_main_loop_new(NULL);
|
||||
spa_assert_se(loop != NULL);
|
||||
context = pw_context_new(pw_main_loop_get_loop(loop), NULL, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue