impl-client: improve constructor

Pass the protocol in constructor
Keep the link in the server protocol list private to the prototol.
This commit is contained in:
Wim Taymans 2019-12-11 17:19:12 +01:00
parent d99b1918ed
commit 73eea24443
5 changed files with 29 additions and 22 deletions

View file

@ -117,7 +117,6 @@ struct pw_impl_client {
struct spa_hook_list listener_list;
struct pw_protocol *protocol; /**< protocol in use */
struct spa_list protocol_link; /**< link in the protocol client_list */
int recv_seq; /**< last received sequence number */
int send_seq; /**< last sender sequence number */