- 08 Jun, 2022 1 commit
-
-
Wim Taymans authored
When in monitor mode, also dump object removal with info/props as NULL. Fixes #2426
-
- 15 Apr, 2022 1 commit
-
-
First method argument is object, first event argument is data. Closes !963
-
- 22 Mar, 2022 1 commit
-
-
P V authored
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...
-
- 21 Mar, 2022 1 commit
-
-
Wim Taymans authored
And use this in spa_json_format_float() where we also avoid invalid json floats. Use json float format in some places where we serialize json floats. Add a unit test. See #2223
-
- 20 Mar, 2022 1 commit
-
-
Wim Taymans authored
Use them in pw-dump. Add some unit tests. See #2223
-
- 09 Feb, 2022 1 commit
-
-
Wim Taymans authored
-
- 07 Feb, 2022 1 commit
-
-
Wim Taymans authored
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
-
- 27 Jan, 2022 1 commit
-
-
Wim Taymans authored
-
- 26 Jan, 2022 1 commit
-
-
Wim Taymans authored
Do pattern matching on object properties to also allow lookups on type, object.path, object.serial and <type>.name. ex: pw-dump alsa_card.usb-BEHRINGER_UMC404HD_192k-00 pw-dump alsa_input* pw-dump Node
-
- 31 Aug, 2021 1 commit
-
-
- 30 Jun, 2021 1 commit
-
-
Barnabás Pőcze authored
Mark some structures, arrays static/const at various places. In some cases this prevents unnecessary initialization when a function is entered. All in all, the text segments across all shared libraries are reduced by about 2 KiB. However, the total size increases by about 2 KiB as well.
-
- 18 Jun, 2021 1 commit
-
-
George Kiagiadakis authored
This also brings the advantage that all tools, examples, modules, components can also be compiled standalone out-of-tree using libpipewire from the system
-
- 16 Jun, 2021 1 commit
-
-
Wim Taymans authored
So that we can also print it instead of printing 0.
-
- 02 Jun, 2021 3 commits
-
-
Just like the real free() we should just ignore a NULL pointer, makes the caller code easier for those instances where properties are optional. Patch generated with concinelle with a few manual fixes.
-
-
Peter Hutterer authored
Makes the code more readable and guarantees we use the same sequences for the same colors everywhere.
-
- 18 May, 2021 1 commit
-
-
Peter Hutterer authored
This change is only done in source files for now, header files will be done separately.
-
- 08 May, 2021 1 commit
-
-
Barnabás Pőcze authored
Previously, isatty(fileno(data.out) && getenv("NO_COLOR") == NULL)) would call `isatty()` with fileno(data.out) && getenv("NO_COLOR") == NULL as its argument. This meant that, for example, NO_COLOR=1 pw-dump would still produce colored output when run with a TTY as its standard input. Fix that by moving the parenthesis. Fixes: af63d084 ("tools/pw-dump: only print colors if we're connected to a terminal")
-
- 07 May, 2021 1 commit
-
-
We don't want ansi escape codes in the output of `pw-dump > log`. And where colors are needed after the fact, it's easy to just run `jq . $file`.
-
- 06 May, 2021 1 commit
-
-
SPA_MEMBER is misleading, all we're doing here is pointer+offset and a type-casting the result. Rename to SPA_PTROFF which is more expressive (and has the same number of characters so we don't need to re-indent).
-
- 13 Apr, 2021 2 commits
-
-
Wim Taymans authored
Reparse the metadata value as json and dump it. This ensures the JSON is valid and that the colors are applied properly.
-
Wim Taymans authored
Don't escape the Spa:String:JSON types in the metadata as it is supposed to be valid JSON that can be output directly. We might want to reparse and reformat it later to be sure.
-
- 23 Mar, 2021 1 commit
-
-
Wim Taymans authored
When the id has no info in the type system use id-xxx instead of "unknown".
-
- 13 Mar, 2021 1 commit
-
-
Wim Taymans authored
See no-color.org
-
- 12 Feb, 2021 1 commit
-
-
Wim Taymans authored
Add -c option to pipewire to select config file. Use this to select the uninstalled conf file. Rename conf properties, prefix with context. Simplify the main daemon now that everything can go in config. Simplify pipewire-pulse now that we can put everything in config, it's now virtually the same as pipewire but with a differenct config file. Parse server addresses as array of strings.
-
- 08 Feb, 2021 1 commit
-
-
Wim Taymans authored
-N disables colors now. Usually we want to preserve them in debug files and grep etc. Use less -R to get colors See #698
-
- 05 Feb, 2021 1 commit
-
-
Wim Taymans authored
Make it possible to add a NULL param to the pending list. The NULL param removes all previous updates. When applying the updates, the NULL param removes the params from the target list. For the cached params in the node/device/port we need to be careful because multiple clients might ask for updates concurrently. Clear the pending list whenever a new param update starts so that we always only keep the last set of updates. This has two advantages: it actually removes params that become unreadable or that got removed and it allows us to update the target list more efficiently in one single loop.
-
- 04 Feb, 2021 2 commits
-
-
Wim Taymans authored
This reverts commit 5aa7746c. Routes are duplicated for some reason, needs more debugging.
-
Wim Taymans authored
Make it possible to add a NULL param to the pending list. The NULL param removes all previous updates. When applying the updates, the NULL param removes the params from the target list. This has two advantages: it actually removes params that become unreadable or that got removed and it allows us to update the target list more efficiently in one single loop.
-
- 03 Feb, 2021 1 commit
-
-
Wim Taymans authored
-
- 02 Feb, 2021 1 commit
-
-
Wim Taymans authored
There is no reason to pass size-1, snprintf will always put a \0 at the end.
-
- 22 Jan, 2021 1 commit
-
-
Wim Taymans authored
-
- 19 Jan, 2021 1 commit
-
-
Wim Taymans authored
Usually the event function marks the object as changed so when there is no event function, mark the change immediately so that we can dump it.
-
- 15 Jan, 2021 1 commit
-
-
Wim Taymans authored
-
- 14 Jan, 2021 5 commits
-
-
Wim Taymans authored
-
Wim Taymans authored
-
Wim Taymans authored
Fix some leaks
-
Wim Taymans authored
so that it is displayed
-
Wim Taymans authored
So that they are actually printed.
-
- 11 Jan, 2021 1 commit
-
-
Wim Taymans authored
-