mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
pod: remove SPA_POD_IS_OBJECT_TYPE
We have a safer version of that in iter.h Use macros to get id and type of an object Use safer checks in plugins.
This commit is contained in:
parent
241a6165d2
commit
f7d32e78f2
5 changed files with 5 additions and 10 deletions
|
|
@ -160,9 +160,6 @@ struct spa_pod_struct {
|
|||
#define SPA_POD_OBJECT_TYPE(obj) (((struct spa_pod_object*)(obj))->body.type)
|
||||
#define SPA_POD_OBJECT_ID(obj) (((struct spa_pod_object*)(obj))->body.id)
|
||||
|
||||
#define SPA_POD_IS_OBJECT_TYPE(obj,tp) (SPA_POD_TYPE(obj) == SPA_TYPE_Object && \
|
||||
SPA_POD_OBJECT_TYPE(obj) == (tp))
|
||||
|
||||
struct spa_pod_object_body {
|
||||
uint32_t type; /**< one of enum spa_type */
|
||||
uint32_t id; /**< id of the object, depends on the object type */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue