mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw_module -> pw_impl_module
This commit is contained in:
parent
815d4a8d20
commit
443a49947e
25 changed files with 184 additions and 184 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue