pulse-server: add an option to check module arguments

Add a list of valid keys to the module info. When set, check if the
module arguments only contain the allowed keys and give an error
otherwise.
This commit is contained in:
Wim Taymans 2023-09-13 12:26:57 +02:00
parent b094057b0b
commit 3c812f672b
4 changed files with 61 additions and 9 deletions

View file

@ -23,6 +23,7 @@ struct module_info {
int (*load) (struct module *module);
int (*unload) (struct module *module);
const char* const *valid_args;
const struct spa_dict *properties;
size_t data_size;
};