diff --git a/src/modules/module-link-factory.c b/src/modules/module-link-factory.c index 4c4c16452..a2b7a3257 100644 --- a/src/modules/module-link-factory.c +++ b/src/modules/module-link-factory.c @@ -258,7 +258,7 @@ static void *create_object(void *_data, pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d", client->global->id); - link = pw_impl_link_new(context, outport, inport, NULL, properties, sizeof(struct link_data)); + link = pw_context_create_link(context, outport, inport, NULL, properties, sizeof(struct link_data)); properties = NULL; if (link == NULL) { res = -errno; diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index b7ba893a3..1a41a9cef 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -1032,7 +1032,7 @@ static const struct pw_global_events input_global_events = { }; SPA_EXPORT -struct pw_impl_link *pw_impl_link_new(struct pw_context *context, +struct pw_impl_link *pw_context_create_link(struct pw_context *context, struct pw_impl_port *output, struct pw_impl_port *input, struct spa_pod *format_filter, diff --git a/src/pipewire/impl-link.h b/src/pipewire/impl-link.h index 08869ac58..822f783c8 100644 --- a/src/pipewire/impl-link.h +++ b/src/pipewire/impl-link.h @@ -79,7 +79,7 @@ struct pw_impl_link_events { /** Make a new link between two ports \memberof pw_impl_link * \return a newly allocated link */ struct pw_impl_link * -pw_impl_link_new(struct pw_context *context, /**< the context object */ +pw_context_create_link(struct pw_context *context, /**< the context object */ struct pw_impl_port *output, /**< an output port */ struct pw_impl_port *input, /**< an input port */ struct spa_pod *format_filter, /**< an optional format filter */