From 8807aa1dcd45d64d9fc452f9f5e5df258c7f806e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 22 Apr 2022 16:51:27 +0200 Subject: [PATCH] module: add docs --- src/modules/module-zeroconf-discover.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/modules/module-zeroconf-discover.c b/src/modules/module-zeroconf-discover.c index 786a0132b..ee3deb4f1 100644 --- a/src/modules/module-zeroconf-discover.c +++ b/src/modules/module-zeroconf-discover.c @@ -48,6 +48,23 @@ #include "module-zeroconf-discover/avahi-poll.h" /** \page page_module_zeroconf_discover PipeWire Module: Zeroconf Discover + * + * Use zeroconf to detect and load module-pulse-tunnel with the right + * parameters. This will automatically create sinks and sources to stream + * audio to/from remote PulseAudio servers. It also works with + * module-protocol-pulse. + * + * This module has no options. + * + * ## Example configuration + * + *\code{.unparsed} + * context.modules = [ + * { name = libpipewire-module-zeroconf-discover + * args = { } + * } + * ] + *\endcode */ #define NAME "zeroconf-discover" @@ -171,7 +188,9 @@ static const struct pw_impl_module_events module_events = { .destroy = module_destroy, }; -static void pw_properties_from_avahi_string(const char *key, const char *value, struct pw_properties *props) { +static void pw_properties_from_avahi_string(const char *key, const char *value, + struct pw_properties *props) +{ if (spa_streq(key, "device")) { pw_properties_set(props, PW_KEY_NODE_TARGET, value); }