mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: store whether the client has been authenticated
Add a new flag to the client struct which saves whether or not the client has successfully authenticated itself.
This commit is contained in:
parent
705ac662e3
commit
92abc7b7ad
2 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ struct client {
|
|||
unsigned int disconnect:1;
|
||||
unsigned int disconnecting:1;
|
||||
unsigned int new_msg_since_last_flush:1;
|
||||
unsigned int authenticated:1;
|
||||
|
||||
struct pw_manager_object *prev_default_sink;
|
||||
struct pw_manager_object *prev_default_source;
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ static int do_command_auth(struct client *client, uint32_t command, uint32_t tag
|
|||
version &= PROTOCOL_VERSION_MASK;
|
||||
|
||||
client->version = version;
|
||||
client->authenticated = true;
|
||||
|
||||
pw_log_info("client:%p AUTH tag:%u version:%d", client, tag, version);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue