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:
Tanu Kaskinen 2014-05-24 13:41:22 +03:00
parent 2bfedb9f73
commit b2dbce200b

View file

@ -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;