client-node: set parent id and owner

Make sure we set the right parent id and owner for the client node
and client-stream
Move the remote id in the proxy object and use it in the stream to
get the node id.
This commit is contained in:
Wim Taymans 2018-07-03 21:43:21 +02:00
parent fe03ec8bde
commit 79a3b594f9
11 changed files with 39 additions and 19 deletions

View file

@ -426,6 +426,7 @@ struct pw_proxy {
struct spa_list link; /**< link in the remote */
uint32_t id; /**< client side id */
uint32_t remote_id; /**< remote id */
struct spa_hook_list listener_list;
struct spa_hook_list proxy_listener_list;
@ -476,6 +477,7 @@ struct pw_stream {
char *error; /**< error reason when state is in error */
struct spa_hook_list listener_list;
struct pw_proxy *proxy;
};
struct pw_factory {