pod: cleanup event and command init

This commit is contained in:
Wim Taymans 2019-08-22 12:47:27 +02:00
parent c9e177827b
commit 570575f052
4 changed files with 12 additions and 16 deletions

View file

@ -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