pw_node_proxy -> pw_node

This commit is contained in:
Wim Taymans 2019-12-11 15:26:11 +01:00
parent 199fa47216
commit beb3c69dfe
23 changed files with 126 additions and 126 deletions

View file

@ -126,7 +126,7 @@ static int client_endpoint_set_param(void *object,
struct endpoint *endpoint = object;
struct impl *impl = endpoint->impl;
pw_log_debug(NAME " %p: endpoint %p set param %d", impl, endpoint, id);
return pw_node_proxy_set_param((struct pw_node_proxy*)endpoint->node->node->obj.proxy,
return pw_node_set_param((struct pw_node*)endpoint->node->node->obj.proxy,
id, flags, param);
}
@ -161,7 +161,7 @@ static int stream_set_active(struct endpoint *endpoint, struct stream *stream, b
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
spa_debug_pod(2, NULL, param);
pw_node_proxy_set_param((struct pw_node_proxy*)endpoint->node->node->obj.proxy,
pw_node_set_param((struct pw_node*)endpoint->node->node->obj.proxy,
SPA_PARAM_PortConfig, 0, param);
}
stream->active = active;
@ -522,7 +522,7 @@ static struct endpoint *create_endpoint(struct node *node, struct endpoint *moni
subscribe[n_subscribe++] = SPA_PARAM_PropInfo;
pw_log_debug(NAME" %p: endpoint %p proxy %p subscribe %d params", impl,
endpoint, node->node->obj.proxy, n_subscribe);
pw_node_proxy_subscribe_params((struct pw_node_proxy*)node->node->obj.proxy,
pw_node_subscribe_params((struct pw_node*)node->node->obj.proxy,
subscribe, n_subscribe);
spa_list_append(&device->endpoint_list, &endpoint->link);

View file

@ -63,7 +63,7 @@ void * sm_alsa_midi_start(struct sm_media_session *session)
impl->proxy = sm_media_session_create_object(session,
"spa-node-factory",
PW_TYPE_INTERFACE_Node,
PW_VERSION_NODE_PROXY,
PW_VERSION_NODE,
&impl->props->dict,
0);

View file

@ -152,7 +152,7 @@ static struct bluez5_node *bluez5_create_node(struct bluez5_object *obj, uint32_
node->adapter = pw_impl_factory_create_object(factory,
NULL,
PW_TYPE_INTERFACE_Node,
PW_VERSION_NODE_PROXY,
PW_VERSION_NODE,
pw_properties_copy(node->props),
0);
if (node->adapter == NULL) {

View file

@ -427,7 +427,7 @@ static void node_event_info(void *object, const struct pw_node_info *info)
if (n_subscribe > 0) {
pw_log_debug(NAME" %p: node %d subscribe %d params", impl,
node->obj.id, n_subscribe);
pw_node_proxy_subscribe_params((struct pw_node_proxy*)node->obj.proxy,
pw_node_subscribe_params((struct pw_node*)node->obj.proxy,
subscribe, n_subscribe);
node->subscribe = true;
}
@ -458,8 +458,8 @@ static void node_event_param(void *object, int seq,
node->obj.changed |= SM_NODE_CHANGE_MASK_PARAMS;
}
static const struct pw_node_proxy_events node_events = {
PW_VERSION_NODE_PROXY_EVENTS,
static const struct pw_node_events node_events = {
PW_VERSION_NODE_EVENTS,
.info = node_event_info,
.param = node_event_param,
};
@ -508,7 +508,7 @@ static void node_destroy(void *object)
static const struct object_info node_info = {
.type = PW_TYPE_INTERFACE_Node,
.version = PW_VERSION_NODE_PROXY,
.version = PW_VERSION_NODE,
.events = &node_events,
.size = sizeof(struct sm_node),
.init = node_init,
@ -1256,7 +1256,7 @@ struct sm_node *sm_media_session_create_node(struct sm_media_session *sess,
proxy = pw_core_create_object(impl->policy_core,
factory_name,
PW_TYPE_INTERFACE_Node,
PW_VERSION_NODE_PROXY,
PW_VERSION_NODE,
props,
sizeof(struct sm_node));

View file

@ -112,7 +112,7 @@ static int client_endpoint_set_param(void *object,
struct node *node = endpoint->node;
pw_log_debug(NAME " %p: node %d set param %d", impl, node->obj->obj.id, id);
return pw_node_proxy_set_param((struct pw_node_proxy*)node->obj->obj.proxy,
return pw_node_set_param((struct pw_node*)node->obj->obj.proxy,
id, flags, param);
}
@ -150,7 +150,7 @@ static int stream_set_active(struct stream *stream, bool active)
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
spa_debug_pod(2, NULL, param);
pw_node_proxy_set_param((struct pw_node_proxy*)node->obj->obj.proxy,
pw_node_set_param((struct pw_node*)node->obj->obj.proxy,
SPA_PARAM_PortConfig, 0, param);
}
stream->active = active;
@ -451,7 +451,7 @@ static struct endpoint *create_endpoint(struct node *node)
subscribe[n_subscribe++] = SPA_PARAM_PropInfo;
pw_log_debug(NAME" %p: node %p proxy %p subscribe %d params", impl,
node->obj, node->obj->obj.proxy, n_subscribe);
pw_node_proxy_subscribe_params((struct pw_node_proxy*)node->obj->obj.proxy,
pw_node_subscribe_params((struct pw_node*)node->obj->obj.proxy,
subscribe, n_subscribe);
sm_media_session_sync(impl->session, complete_endpoint, endpoint);

View file

@ -146,7 +146,7 @@ static struct v4l2_node *v4l2_create_node(struct v4l2_object *obj, uint32_t id,
node->proxy = sm_media_session_create_object(impl->session,
"spa-node-factory",
PW_TYPE_INTERFACE_Node,
PW_VERSION_NODE_PROXY,
PW_VERSION_NODE,
&node->props->dict,
0);
if (node->proxy == NULL) {