mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
stream: Add pw_stream_get_node_id()
Adds API to get the node ID of the stream.
This commit is contained in:
parent
560e02ef11
commit
61424a4343
2 changed files with 11 additions and 0 deletions
|
|
@ -957,6 +957,12 @@ pw_stream_connect(struct pw_stream *stream,
|
|||
return true;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
pw_stream_get_node_id(struct pw_stream *stream)
|
||||
{
|
||||
return stream->node_id;
|
||||
}
|
||||
|
||||
void
|
||||
pw_stream_finish_format(struct pw_stream *stream,
|
||||
int res, struct spa_param **params, uint32_t n_params)
|
||||
|
|
|
|||
|
|
@ -265,6 +265,11 @@ pw_stream_connect(struct pw_stream *stream, /**< a \ref pw_stream */
|
|||
uint32_t n_possible_formats, /**< number of items in \a possible_formats */
|
||||
const struct spa_format **possible_formats /**< an array with possible accepted formats */);
|
||||
|
||||
/** Get the node ID of the stream. \memberof pw_stream
|
||||
* \return node ID. */
|
||||
uint32_t
|
||||
pw_stream_get_node_id(struct pw_stream *stream);
|
||||
|
||||
/** Disconnect \a stream \memberof pw_stream */
|
||||
void pw_stream_disconnect(struct pw_stream *stream);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue