stream: Add pw_stream_get_node_id()

Adds API to get the node ID of the stream.
This commit is contained in:
Jonas Ådahl 2017-08-17 10:21:58 +08:00 committed by Wim Taymans
parent 560e02ef11
commit 61424a4343
2 changed files with 11 additions and 0 deletions

View file

@ -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)

View file

@ -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);