mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
pod: cleanup event and command init
This commit is contained in:
parent
c9e177827b
commit
570575f052
4 changed files with 12 additions and 16 deletions
|
|
@ -44,14 +44,14 @@ struct spa_event {
|
|||
#define SPA_EVENT_ID(ev,type) (SPA_EVENT_TYPE(ev) == type ? \
|
||||
(ev)->body.body.id : SPA_ID_INVALID)
|
||||
|
||||
#define SPA_EVENT_INIT(type,id) (struct spa_event) \
|
||||
{ { sizeof(struct spa_event_body), SPA_TYPE_Object }, \
|
||||
{ { type, id } } } \
|
||||
|
||||
#define SPA_EVENT_INIT_FULL(t,size,type,id,...) (t) \
|
||||
{ { size, SPA_TYPE_OBJECT }, \
|
||||
{ { type, id }, ##__VA_ARGS__ } } \
|
||||
|
||||
#define SPA_EVENT_INIT(type,id) \
|
||||
SPA_EVENT_INIT_FULL(struct spa_event, \
|
||||
sizeof(struct spa_event_body), type, id)
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue