mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
device-manager: Add a comment about non-extensible struct
This comment can potentially save a lot of debugging effort and fixing an ABI break, even though I don't think it's particularly likely that anyone will ever extend pa_ext_device_manager_role_priority_info.
This commit is contained in:
parent
2bfedb9f73
commit
b2dbce200b
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@
|
||||||
|
|
||||||
PA_C_DECL_BEGIN
|
PA_C_DECL_BEGIN
|
||||||
|
|
||||||
|
/* Don't extend this struct! It will break binary compatibility, because
|
||||||
|
* pa_ext_device_manager_info.role_priorities points to an array of structs
|
||||||
|
* instead of an array of pointers to structs. */
|
||||||
typedef struct pa_ext_device_manager_role_priority_info {
|
typedef struct pa_ext_device_manager_role_priority_info {
|
||||||
const char *role;
|
const char *role;
|
||||||
uint32_t priority;
|
uint32_t priority;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue