mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05: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
|
|
@ -35,16 +35,16 @@ struct spa_handle {
|
|||
/* user_data that can be set by the application */
|
||||
void *user_data;
|
||||
/**
|
||||
* Get the interface provided by \a handle with \a interface_id.
|
||||
* Get the interface provided by \a handle with \a type.
|
||||
*
|
||||
* \param handle a spa_handle
|
||||
* \param interface_id the interface id
|
||||
* \param type the interface type
|
||||
* \param interface result to hold the interface.
|
||||
* \return 0 on success
|
||||
* -ENOTSUP when there are no interfaces
|
||||
* -EINVAL when handle or info is NULL
|
||||
*/
|
||||
int (*get_interface) (struct spa_handle *handle, uint32_t interface_id, void **interface);
|
||||
int (*get_interface) (struct spa_handle *handle, uint32_t type, void **interface);
|
||||
/**
|
||||
* Clean up the memory of \a handle. After this, \a handle should not be used
|
||||
* anymore.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue