mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
More type cleanups
SPA_ID_* -> SPA_TYPE_*. We use 'type' for all registered types. ID refers to either a registered type or an enum. Improve introspection of object ids. Make 0 an invalid enum and use it to look up the object id type. Move some type-info files together. Swap type and id of the object, we first specify the type and then the id because the meaning of the id depends on the object type.
This commit is contained in:
parent
281b65934e
commit
90c1a95eef
117 changed files with 1198 additions and 1272 deletions
|
|
@ -38,13 +38,15 @@ enum spa_param_type {
|
|||
SPA_PARAM_IO, /**< configurable IO areas */
|
||||
};
|
||||
|
||||
/** Properties for SPA_ID_OBJECT_ParamList */
|
||||
/** Properties for SPA_TYPE_OBJECT_ParamList */
|
||||
enum spa_param_list {
|
||||
SPA_PARAM_LIST_START, /**< object id, one of enum spa_param_type */
|
||||
SPA_PARAM_LIST_id, /**< id of the supported list param */
|
||||
};
|
||||
|
||||
/** properties for SPA_ID_OBJECT_ParamBuffers */
|
||||
/** properties for SPA_TYPE_OBJECT_ParamBuffers */
|
||||
enum spa_param_buffers {
|
||||
SPA_PARAM_BUFFERS_START, /**< object id, one of enum spa_param_type */
|
||||
SPA_PARAM_BUFFERS_buffers, /**< number of buffers */
|
||||
SPA_PARAM_BUFFERS_blocks, /**< number of data blocks per buffer */
|
||||
SPA_PARAM_BUFFERS_size, /**< size of a data block memory */
|
||||
|
|
@ -52,14 +54,16 @@ enum spa_param_buffers {
|
|||
SPA_PARAM_BUFFERS_align, /**< alignment of data block memory */
|
||||
};
|
||||
|
||||
/** properties for SPA_ID_OBJECT_ParamMeta */
|
||||
/** properties for SPA_TYPE_OBJECT_ParamMeta */
|
||||
enum spa_param_meta {
|
||||
SPA_PARAM_META_START, /**< object id, one of enum spa_param_type */
|
||||
SPA_PARAM_META_type, /**< the metadata, one of enum spa_meta_type */
|
||||
SPA_PARAM_META_size, /**< the expected maximum size the meta */
|
||||
};
|
||||
|
||||
/** properties for SPA_ID_OBJECT_ParamIO */
|
||||
/** properties for SPA_TYPE_OBJECT_ParamIO */
|
||||
enum spa_param_io {
|
||||
SPA_PARAM_IO_START, /**< object id, one of enum spa_param_type */
|
||||
SPA_PARAM_IO_id, /**< type ID, uniquely identifies the io area */
|
||||
SPA_PARAM_IO_size, /**< size of the io area */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue