mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pw_core -> pw_context
The proxy API is the one that we would like to expose for applications and the other API is used internally when implementing modules or factories. The current pw_core object is really a context for all objects so name it that way. It also makes it possible to rename pw_core_proxy to pw_proxy later.
This commit is contained in:
parent
42103a8218
commit
8ea78c2e3f
113 changed files with 905 additions and 906 deletions
|
|
@ -68,7 +68,7 @@ typedef struct {
|
|||
struct pw_loop *loop;
|
||||
struct pw_thread_loop *main_loop;
|
||||
|
||||
struct pw_core *core;
|
||||
struct pw_context *context;
|
||||
|
||||
struct pw_core_proxy *core_proxy;
|
||||
struct spa_hook core_listener;
|
||||
|
|
@ -113,8 +113,8 @@ static void snd_pcm_pipewire_free(snd_pcm_pipewire_t *pw)
|
|||
if (pw) {
|
||||
if (pw->main_loop)
|
||||
pw_thread_loop_stop(pw->main_loop);
|
||||
if (pw->core)
|
||||
pw_core_destroy(pw->core);
|
||||
if (pw->context)
|
||||
pw_context_destroy(pw->context);
|
||||
if (pw->main_loop)
|
||||
pw_thread_loop_destroy(pw->main_loop);
|
||||
if (pw->fd >= 0)
|
||||
|
|
@ -814,7 +814,7 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name,
|
|||
|
||||
pw->loop = pw_loop_new(NULL);
|
||||
pw->main_loop = pw_thread_loop_new(pw->loop, "alsa-pipewire");
|
||||
pw->core = pw_core_new(pw->loop, NULL, 0);
|
||||
pw->context = pw_context_new(pw->loop, NULL, 0);
|
||||
|
||||
props = pw_properties_new(NULL, NULL);
|
||||
str = pw_get_prgname();
|
||||
|
|
@ -827,7 +827,7 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name,
|
|||
goto error;
|
||||
|
||||
pw_thread_loop_lock(pw->main_loop);
|
||||
pw->core_proxy = pw_core_connect(pw->core, props, 0);
|
||||
pw->core_proxy = pw_context_connect(pw->context, props, 0);
|
||||
if (pw->core_proxy == NULL) {
|
||||
err = -errno;
|
||||
pw_thread_loop_unlock(pw->main_loop);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue