Pauli Virtanen
c66bb65c7a
pipewire: don't setlocale from pw_init, let parent app set it
...
Library code generally shouldn't modify global state, so pw_init()
should not result to changing the C locale.
Instead, set the C locale in main() for tools and daemons.
We'll still setlocale for LC_MESSAGES, to get translated UI elements in
wireplumber. This workaround should be removed eventually...
2022-03-22 21:32:35 +02:00
Wim Taymans
e82f775fb3
tools: remove listeners
2022-02-09 16:30:13 +01:00
Wim Taymans
afc88a12e5
tools: cleanup up printf
...
Make all tools output to stdout (pw-mon mostly) so that we can pipe the
output around.
Send errors to stderr.
fprintf(stdout, ...) -> printf(...)
setlinebuf for stdout so that pipe works better.
See #2110
2022-02-07 17:03:46 +01:00
Wim Taymans
7ac809618e
pw-link: improve help and error messages
...
See #2089
2022-02-03 16:39:52 +01:00
Wim Taymans
a947faeaa0
pw-link: clarify -L option
...
-L is enabled by default, unless -m is specified.
2022-02-03 16:30:06 +01:00
Wim Taymans
b5cd6d02fd
pw-link: fix -L comment
2022-02-03 16:22:21 +01:00
Peter Hutterer
7697ed0757
treewide: replace strcmp() == 0 with spa_streq()
...
This change is only done in source files for now, header files will be done
separately.
2021-05-18 22:10:27 +10:00
Wim Taymans
9019edec31
pw-link: improve unlink
...
When we only have one argument, just check the link id and if that
fails don't try to check the second argument because we would crash.
2021-04-08 15:32:06 +02:00
Wim Taymans
1b29531336
pw-link: make it possible to use ids
...
Make it possible to link/unlink using port ids
Make it possible to unlink using the link id
2021-04-08 13:09:51 +02:00
Wim Taymans
40194833ce
pw-link: add option to print ids
...
Add an option to print the object ids
Improve monitor output
2021-04-08 12:54:53 +02:00
Wim Taymans
a296007ed9
pw-link: implement monitor
2021-04-08 12:08:04 +02:00
Wim Taymans
67a3f28bdf
tools: add new pw-link tool
...
pw-link can be used to list, link and unlink ports.
2021-04-07 18:56:44 +02:00