module: fix registration of modules

Don't fail when protocol-native is already registered.
This commit is contained in:
Wim Taymans 2017-07-19 12:44:10 +02:00
parent 91d54364fc
commit 589e3d977c
10 changed files with 50 additions and 36 deletions

View file

@ -63,12 +63,14 @@ struct pw_module {
typedef bool (*pw_module_init_func_t) (struct pw_module *module, char *args);
struct pw_module *
pw_module_load(struct pw_core *core,
const char *name, const char *args, char **err);
pw_module_load(struct pw_core *core, const char *name, const char *args);
void
pw_module_destroy(struct pw_module *module);
struct pw_module *
pw_core_find_module(struct pw_core *core, const char *filename);
#ifdef __cplusplus
}
#endif