pw_endpoint_proxy -> pw_endpoint

This commit is contained in:
Wim Taymans 2019-12-11 16:43:53 +01:00
parent 85103d128e
commit 9b53c65c72
10 changed files with 71 additions and 71 deletions

View file

@ -204,7 +204,7 @@ static int client_endpoint_create_link(void *object, const struct spa_dict *prop
pw_properties_setf(p, PW_KEY_LINK_OUTPUT_NODE, "%d", endpoint->node->node->info->id);
pw_properties_setf(p, PW_KEY_LINK_OUTPUT_PORT, "-1");
pw_endpoint_proxy_create_link((struct pw_endpoint_proxy*)obj->proxy, &p->dict);
pw_endpoint_create_link((struct pw_endpoint*)obj->proxy, &p->dict);
} else {
pw_properties_setf(p, PW_KEY_LINK_INPUT_NODE, "%d", endpoint->node->node->info->id);
pw_properties_setf(p, PW_KEY_LINK_INPUT_PORT, "-1");

View file

@ -684,8 +684,8 @@ static void endpoint_event_info(void *object, const struct pw_endpoint_info *inf
pw_proxy_sync(endpoint->obj.proxy, 1);
}
static const struct pw_endpoint_proxy_events endpoint_events = {
PW_VERSION_ENDPOINT_PROXY_EVENTS,
static const struct pw_endpoint_events endpoint_events = {
PW_VERSION_ENDPOINT_EVENTS,
.info = endpoint_event_info,
};
@ -734,7 +734,7 @@ static void endpoint_destroy(void *object)
static const struct object_info endpoint_info = {
.type = PW_TYPE_INTERFACE_Endpoint,
.version = PW_VERSION_ENDPOINT_PROXY,
.version = PW_VERSION_ENDPOINT,
.events = &endpoint_events,
.size = sizeof(struct sm_endpoint),
.init = endpoint_init,

View file

@ -326,7 +326,7 @@ static int link_endpoints(struct endpoint *endpoint, enum pw_direction direction
pw_log_debug(NAME " %p: endpoint %d -> endpoint %d", impl,
endpoint->id, peer->id);
pw_endpoint_proxy_create_link((struct pw_endpoint_proxy*)endpoint->obj->obj.proxy,
pw_endpoint_create_link((struct pw_endpoint*)endpoint->obj->obj.proxy,
&props->dict);
pw_properties_free(props);

View file

@ -200,7 +200,7 @@ static int client_endpoint_create_link(void *object, const struct spa_dict *prop
res = -EINVAL;
goto exit;
}
pw_endpoint_proxy_create_link((struct pw_endpoint_proxy*)obj->proxy, &p->dict);
pw_endpoint_create_link((struct pw_endpoint*)obj->proxy, &p->dict);
} else {
pw_properties_setf(p, PW_KEY_LINK_INPUT_NODE, "%d", endpoint->node->id);
pw_properties_setf(p, PW_KEY_LINK_INPUT_PORT, "-1");