pulse-server: message: use union to store event data

Store subscription event data in a union instead of
just an array for better readability.
This commit is contained in:
Barnabás Pőcze 2024-05-14 16:32:19 +02:00 committed by Wim Taymans
parent d467f6fdc6
commit 46e4a33f27
3 changed files with 21 additions and 9 deletions

View file

@ -847,7 +847,7 @@ struct message *message_alloc(struct impl *impl, uint32_t channel, uint32_t size
return NULL;
}
spa_zero(msg->extra);
msg->type = MESSAGE_TYPE_UNSPECIFIED;
msg->channel = channel;
msg->offset = 0;
msg->length = size;