wireplumber/modules
Peter Hutterer d38c3fb4cc lib: add functions to search in configuration/data directories
The previous approach to loading config files was to ask WP for the
directory and then search those for the config files. This patch changes the
approach - a caller now asks WP to search for a specific config file or
iterate over a config file directory.

This allows us to implement a directory lookup order, i.e.
"wireplumber.conf" may be in XDG_CONFIG_DIR, /etc/,
/usr/share and the first one found is used.

For configuration directories, the new method iterates over all matching
entries (files + directories) and invokes a callback for each entry.

This enables distributions to ship default files in /usr/share/wireplumber
but have admins and users override them on a local basis. For lua scripts in
particular, overriding a distribution-provided file with an empty file
effectively disables it, adding a file adds it in the right sort order.
2021-07-15 15:17:01 +00:00
..
module-default-nodes m-default-nodes: move common code to a new header 2021-03-31 13:10:13 +03:00
module-lua-scripting lib: add functions to search in configuration/data directories 2021-07-15 15:17:01 +00:00
module-portal-permissionstore docs: api: Replace hotdoc specific commands with Doxygen specific commands 2021-05-25 14:19:53 +03:00
module-reserve-device m-reserve-device: use a weak ref instead of raw pointer for transition 2021-06-25 11:04:30 -04:00
module-si-audio-adapter m-si-adapter: rename to si-audio-adapter 2021-03-18 14:47:22 -04:00
meson.build modules: remove the old m-default-routes 2021-06-03 16:33:32 +03:00
module-default-nodes-api.c s/metadatas/metadata/g 2021-06-18 10:44:24 +03:00
module-default-nodes.c m-default-nodes: properly parse args 2021-06-25 08:50:08 -04:00
module-default-profile.c state: remove support for groups and propagate save errors 2021-06-04 18:36:19 +03:00
module-device-activation.c m-device-activation: don't set device routes 2021-06-03 16:32:12 +03:00
module-ipc.c s/metadatas/metadata/g 2021-06-18 10:44:24 +03:00
module-lua-scripting.c lib: add functions to search in configuration/data directories 2021-07-15 15:17:01 +00:00
module-metadata.c lib: introduce WpComponentLoader and remove WpModule 2021-02-03 17:16:51 +02:00
module-mixer-api.c m-mixer-api: only add 'mute' if correctly parsed 2021-06-25 08:50:08 -04:00
module-si-audio-adapter.c si-audio-adapter/endpoint: do not sync() in loops, use ports-changed instead 2021-06-18 15:14:03 +03:00
module-si-audio-endpoint.c si-audio-adapter/endpoint: do not sync() in loops, use ports-changed instead 2021-06-18 15:14:03 +03:00
module-si-node.c pipewire-object: fix memory leaks when getting properties 2021-06-03 14:53:00 -04:00
module-si-standard-link.c m-si-standard-link: make link_all a parameter 2021-06-25 08:50:08 -04:00