mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw_impl_node_new -> pw_context_create_node
This commit is contained in:
parent
6043a3f8c0
commit
930b595724
6 changed files with 7 additions and 7 deletions
|
|
@ -1183,7 +1183,7 @@ struct pw_proxy *pw_core_spa_node_export(struct pw_core *core,
|
|||
{
|
||||
struct pw_impl_node *node;
|
||||
|
||||
node = pw_impl_node_new(pw_core_get_context(core), props, 0);
|
||||
node = pw_context_create_node(pw_core_get_context(core), props, 0);
|
||||
if (node == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ pw_spa_node_new(struct pw_context *context,
|
|||
struct impl *impl;
|
||||
int res;
|
||||
|
||||
this = pw_impl_node_new(context, properties, sizeof(struct impl) + user_data_size);
|
||||
this = pw_context_create_node(context, properties, sizeof(struct impl) + user_data_size);
|
||||
if (this == NULL) {
|
||||
res = -errno;
|
||||
goto error_exit;
|
||||
|
|
|
|||
|
|
@ -563,7 +563,7 @@ static void device_add_object(struct pw_impl_device *device, uint32_t id,
|
|||
case SPA_TYPE_INTERFACE_Node:
|
||||
{
|
||||
struct pw_impl_node *node;
|
||||
node = pw_impl_node_new(context, props, sizeof(struct object_data));
|
||||
node = pw_context_create_node(context, props, sizeof(struct object_data));
|
||||
|
||||
od = pw_impl_node_get_user_data(node);
|
||||
od->object = node;
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ static void reset_position(struct spa_io_position *pos)
|
|||
}
|
||||
|
||||
SPA_EXPORT
|
||||
struct pw_impl_node *pw_impl_node_new(struct pw_context *context,
|
||||
struct pw_impl_node *pw_context_create_node(struct pw_context *context,
|
||||
struct pw_properties *properties,
|
||||
size_t user_data_size)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ struct pw_impl_node_events {
|
|||
|
||||
/** Create a new node \memberof pw_impl_node */
|
||||
struct pw_impl_node *
|
||||
pw_impl_node_new(struct pw_context *context, /**< the context */
|
||||
pw_context_create_node(struct pw_context *context, /**< the context */
|
||||
struct pw_properties *properties, /**< extra properties */
|
||||
size_t user_data_size /**< user data size */);
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ void pw_impl_node_destroy(struct pw_impl_node *node);
|
|||
/** Get the node info */
|
||||
const struct pw_node_info *pw_impl_node_get_info(struct pw_impl_node *node);
|
||||
|
||||
/** Get node user_data. The size of the memory was given in \ref pw_impl_node_new */
|
||||
/** Get node user_data. The size of the memory was given in \ref pw_context_create_node */
|
||||
void * pw_impl_node_get_user_data(struct pw_impl_node *node);
|
||||
|
||||
/** Get the context of this node */
|
||||
|
|
|
|||
|
|
@ -1406,7 +1406,7 @@ pw_stream_connect(struct pw_stream *stream,
|
|||
pw_properties_set(props, "resample.peaks", "1");
|
||||
}
|
||||
|
||||
slave = pw_impl_node_new(impl->context, pw_properties_copy(props), 0);
|
||||
slave = pw_context_create_node(impl->context, pw_properties_copy(props), 0);
|
||||
if (slave == NULL) {
|
||||
res = -errno;
|
||||
goto error_node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue