mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-28 01:40:36 -05:00
switch-on-connect: Add blacklisting
Add a new module argument, blacklist, which is a regular expression. If the sink/source name matches the provided blacklist regex, don't automatically switch to it. By default, no devices are blacklisted. Add a new function to check whenever a regex pattern is valid, plus extra NULL asserts in pa_match.
This commit is contained in:
parent
c90894b4d5
commit
ad16d77dfe
3 changed files with 48 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ size_t pa_vsnprintf(char *str, size_t size, const char *format, va_list ap);
|
|||
char *pa_truncate_utf8(char *c, size_t l);
|
||||
|
||||
int pa_match(const char *expr, const char *v);
|
||||
bool pa_is_regex_valid(const char *expr);
|
||||
|
||||
char *pa_getcwd(void);
|
||||
char *pa_make_path_absolute(const char *p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue