mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-20 05:33:55 -04:00
Cleanups
Make separate _register function so that we can first configure the object before making it publicly visible.
This commit is contained in:
parent
67d4dd8656
commit
f64c28c091
25 changed files with 131 additions and 99 deletions
|
|
@ -51,7 +51,7 @@ struct pw_module;
|
|||
*
|
||||
* \memberof pw_module
|
||||
*/
|
||||
typedef bool (*pw_module_init_func_t) (struct pw_module *module, char *args);
|
||||
typedef bool (*pw_module_init_func_t) (struct pw_module *module, const char *args);
|
||||
|
||||
/** Module events added with \ref pw_module_add_listener */
|
||||
struct pw_module_events {
|
||||
|
|
@ -62,7 +62,7 @@ struct pw_module_events {
|
|||
void (*destroy) (void *data);
|
||||
};
|
||||
|
||||
/** Load a module by name and arguments */
|
||||
/** Load a module by name and arguments and register it */
|
||||
struct pw_module *
|
||||
pw_module_load(struct pw_core *core, const char *name, const char *args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue