pw_module -> pw_impl_module

This commit is contained in:
Wim Taymans 2019-12-11 11:57:56 +01:00
parent 815d4a8d20
commit 443a49947e
25 changed files with 184 additions and 184 deletions

View file

@ -238,7 +238,7 @@ static bool do_help(struct data *data, const char *cmd, char *args, char **error
static bool do_load_module(struct data *data, const char *cmd, char *args, char **error)
{
struct pw_module *module;
struct pw_impl_module *module;
char *a[2];
int n;
uint32_t id;
@ -249,14 +249,14 @@ static bool do_load_module(struct data *data, const char *cmd, char *args, char
return false;
}
module = pw_module_load(data->context, a[0], n == 2 ? a[1] : NULL, NULL);
module = pw_impl_module_load(data->context, a[0], n == 2 ? a[1] : NULL, NULL);
if (module == NULL) {
asprintf(error, "Could not load module");
return false;
}
id = pw_map_insert_new(&data->vars, module);
fprintf(stdout, "%d = @module:%d\n", id, pw_global_get_id(pw_module_get_global(module)));
fprintf(stdout, "%d = @module:%d\n", id, pw_global_get_id(pw_impl_module_get_global(module)));
return true;
}
@ -1648,7 +1648,7 @@ int main(int argc, char *argv[])
data.context = pw_context_new(l, pw_properties_new(PW_KEY_CORE_DAEMON, "1", NULL), 0);
info = pw_context_get_info(data.context);
pw_module_load(data.context, "libpipewire-module-link-factory", NULL, NULL);
pw_impl_module_load(data.context, "libpipewire-module-link-factory", NULL, NULL);
pw_loop_add_io(l, STDIN_FILENO, SPA_IO_IN|SPA_IO_HUP, false, do_input, &data);