summaryrefslogtreecommitdiff
path: root/src/pulse
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-05-24 13:41:22 +0300
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-07-12 20:07:16 +0300
commitb2dbce200bc0c2b2f6ffa5f9a2743647d85ee73b (patch)
treebd0db5fafe26c75cf2a79e51bcdb9a3a15835269 /src/pulse
parent2bfedb9f7340ae49e6d83aa2b0fb0529e1a1a462 (diff)
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.
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/ext-device-manager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulse/ext-device-manager.h b/src/pulse/ext-device-manager.h
index 1e41ebd72..1ee683079 100644
--- a/src/pulse/ext-device-manager.h
+++ b/src/pulse/ext-device-manager.h
@@ -34,6 +34,9 @@
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 {
const char *role;
uint32_t priority;