mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw_client_endpoint_proxy -> pw_client_endpoint
pw_client_session_proxy -> pw_client_session
This commit is contained in:
parent
743450a19f
commit
94ed9c8e38
9 changed files with 138 additions and 138 deletions
|
|
@ -61,7 +61,7 @@ struct endpoint {
|
|||
struct node *node;
|
||||
struct spa_hook listener;
|
||||
|
||||
struct pw_client_endpoint_proxy *client_endpoint;
|
||||
struct pw_client_endpoint *client_endpoint;
|
||||
struct spa_hook proxy_listener;
|
||||
struct spa_hook client_endpoint_listener;
|
||||
struct pw_endpoint_info info;
|
||||
|
|
@ -219,8 +219,8 @@ exit:
|
|||
return res;
|
||||
}
|
||||
|
||||
static const struct pw_client_endpoint_proxy_events client_endpoint_events = {
|
||||
PW_VERSION_CLIENT_ENDPOINT_PROXY_EVENTS,
|
||||
static const struct pw_client_endpoint_events client_endpoint_events = {
|
||||
PW_VERSION_CLIENT_ENDPOINT_EVENTS,
|
||||
.set_session_id = client_endpoint_set_session_id,
|
||||
.set_param = client_endpoint_set_param,
|
||||
.stream_set_param = client_endpoint_stream_set_param,
|
||||
|
|
@ -261,7 +261,7 @@ static struct stream *endpoint_add_stream(struct endpoint *endpoint)
|
|||
s->format = endpoint->format;
|
||||
|
||||
pw_log_debug("stream %d", s->info.id);
|
||||
pw_client_endpoint_proxy_stream_update(endpoint->client_endpoint,
|
||||
pw_client_endpoint_stream_update(endpoint->client_endpoint,
|
||||
s->info.id,
|
||||
PW_CLIENT_ENDPOINT_STREAM_UPDATE_INFO,
|
||||
0, NULL,
|
||||
|
|
@ -277,7 +277,7 @@ static void destroy_stream(struct stream *stream)
|
|||
{
|
||||
struct endpoint *endpoint = stream->endpoint;
|
||||
|
||||
pw_client_endpoint_proxy_stream_update(endpoint->client_endpoint,
|
||||
pw_client_endpoint_stream_update(endpoint->client_endpoint,
|
||||
stream->info.id,
|
||||
PW_CLIENT_ENDPOINT_STREAM_UPDATE_DESTROYED,
|
||||
0, NULL,
|
||||
|
|
@ -313,7 +313,7 @@ static void update_params(void *data)
|
|||
}
|
||||
}
|
||||
|
||||
pw_client_endpoint_proxy_update(endpoint->client_endpoint,
|
||||
pw_client_endpoint_update(endpoint->client_endpoint,
|
||||
PW_CLIENT_ENDPOINT_UPDATE_PARAMS |
|
||||
PW_CLIENT_ENDPOINT_UPDATE_INFO,
|
||||
n_params, params,
|
||||
|
|
@ -371,7 +371,7 @@ static void complete_endpoint(void *data)
|
|||
endpoint->format = info;
|
||||
}
|
||||
|
||||
pw_client_endpoint_proxy_update(endpoint->client_endpoint,
|
||||
pw_client_endpoint_update(endpoint->client_endpoint,
|
||||
PW_CLIENT_ENDPOINT_UPDATE_INFO,
|
||||
0, NULL,
|
||||
&endpoint->info);
|
||||
|
|
@ -475,7 +475,7 @@ static struct endpoint *create_endpoint(struct node *node, struct endpoint *moni
|
|||
proxy = sm_media_session_create_object(impl->session,
|
||||
"client-endpoint",
|
||||
PW_TYPE_INTERFACE_ClientEndpoint,
|
||||
PW_VERSION_CLIENT_ENDPOINT_PROXY,
|
||||
PW_VERSION_CLIENT_ENDPOINT,
|
||||
&props->dict, sizeof(*endpoint));
|
||||
if (proxy == NULL) {
|
||||
pw_properties_free(props);
|
||||
|
|
@ -487,7 +487,7 @@ static struct endpoint *create_endpoint(struct node *node, struct endpoint *moni
|
|||
endpoint->node = node;
|
||||
endpoint->monitor = monitor;
|
||||
endpoint->props = props;
|
||||
endpoint->client_endpoint = (struct pw_client_endpoint_proxy *) proxy;
|
||||
endpoint->client_endpoint = (struct pw_client_endpoint *) proxy;
|
||||
endpoint->info.version = PW_VERSION_ENDPOINT_INFO;
|
||||
endpoint->info.name = (char*)pw_properties_get(endpoint->props, PW_KEY_ENDPOINT_NAME);
|
||||
endpoint->info.media_class = (char*)pw_properties_get(endpoint->props, PW_KEY_MEDIA_CLASS);
|
||||
|
|
@ -512,7 +512,7 @@ static struct endpoint *create_endpoint(struct node *node, struct endpoint *moni
|
|||
&endpoint->proxy_listener,
|
||||
&proxy_events, endpoint);
|
||||
|
||||
pw_client_endpoint_proxy_add_listener(endpoint->client_endpoint,
|
||||
pw_client_endpoint_add_listener(endpoint->client_endpoint,
|
||||
&endpoint->client_endpoint_listener,
|
||||
&client_endpoint_events,
|
||||
endpoint);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue