mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse-server: move extension to modules
Add extension support to modules. This is a list of extension commands that can be performed on the module. Remove the custom registry of extensions and make proper modules that implement the extensions. This is more in line with what pulseaudio does. The advantage is that the modules actually show up in the module list and that we can use the module user_data to implement the extension later.
This commit is contained in:
parent
89077d16ec
commit
d71fb40989
13 changed files with 269 additions and 102 deletions
|
|
@ -13,6 +13,9 @@
|
|||
|
||||
struct module;
|
||||
struct pw_properties;
|
||||
struct client;
|
||||
struct message;
|
||||
struct extension;
|
||||
|
||||
struct module_info {
|
||||
const char *name;
|
||||
|
|
@ -23,6 +26,7 @@ struct module_info {
|
|||
int (*load) (struct module *module);
|
||||
int (*unload) (struct module *module);
|
||||
|
||||
const struct extension *extension;
|
||||
const char* const *valid_args;
|
||||
const struct spa_dict *properties;
|
||||
size_t data_size;
|
||||
|
|
@ -64,6 +68,8 @@ int module_load(struct module *module);
|
|||
int module_unload(struct module *module);
|
||||
void module_schedule_unload(struct module *module);
|
||||
|
||||
struct module *module_lookup(struct impl *impl, uint32_t index, const char *name);
|
||||
|
||||
void module_add_listener(struct module *module,
|
||||
struct spa_hook *listener,
|
||||
const struct module_events *events, void *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue