From a56435c4dcf8db5ead3150ede444ec7711056e84 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Mon, 11 Jul 2022 15:28:52 +0300 Subject: [PATCH] pipewire: deprecate pw_stream_connect target_id in documentation --- src/pipewire/stream.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pipewire/stream.h b/src/pipewire/stream.h index e61213dd0..ca3aac86c 100644 --- a/src/pipewire/stream.h +++ b/src/pipewire/stream.h @@ -436,9 +436,16 @@ int pw_stream_update_properties(struct pw_stream *stream, const struct spa_dict int pw_stream_connect(struct pw_stream *stream, /**< a \ref pw_stream */ enum pw_direction direction, /**< the stream direction */ - uint32_t target_id, /**< the target object id to connect to or - * PW_ID_ANY to let the manager - * select a target. */ + uint32_t target_id, /**< should have the value PW_ID_ANY. + * To select a specific target + * node, specify the + * PW_KEY_OBJECT_SERIAL or the + * PW_KEY_NODE_NAME value of the target + * node in the PW_KEY_TARGET_OBJECT + * property of the stream. + * Specifying target nodes by + * their id is deprecated. + */ enum pw_stream_flags flags, /**< stream flags */ const struct spa_pod **params, /**< an array with params. The params * should ideally contain supported