pulse-server: move parts of client creation

Move some portions of the client creation logic into client.c
so that it is easier to keep it in sync with `client_free()`, etc.
This commit is contained in:
Barnabás Pőcze 2021-11-11 23:24:41 +01:00 committed by Wim Taymans
parent 9c218b2d08
commit 6d2e6fde75
3 changed files with 26 additions and 13 deletions

View file

@ -102,6 +102,7 @@ struct client {
struct pw_manager_object *prev_default_source;
};
struct client *client_new(struct server *server);
bool client_detach(struct client *client);
void client_disconnect(struct client *client);
void client_free(struct client *client);