mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
parent
b5a9974795
commit
82b1ee1b8a
1 changed files with 4 additions and 4 deletions
|
|
@ -158,14 +158,14 @@ struct spa_interface {
|
|||
const type *_f = (const type *) (callbacks)->funcs; \
|
||||
bool _res = SPA_CALLBACK_CHECK(_f,method,vers); \
|
||||
if (SPA_LIKELY(_res)) \
|
||||
_f->method((callbacks)->data, ## __VA_ARGS__); \
|
||||
(_f->method)((callbacks)->data, ## __VA_ARGS__); \
|
||||
_res; \
|
||||
})
|
||||
|
||||
#define spa_callbacks_call_fast(callbacks,type,method,vers,...) \
|
||||
({ \
|
||||
const type *_f = (const type *) (callbacks)->funcs; \
|
||||
_f->method((callbacks)->data, ## __VA_ARGS__); \
|
||||
(_f->method)((callbacks)->data, ## __VA_ARGS__); \
|
||||
true; \
|
||||
})
|
||||
|
||||
|
|
@ -199,13 +199,13 @@ struct spa_interface {
|
|||
({ \
|
||||
const type *_f = (const type *) (callbacks)->funcs; \
|
||||
if (SPA_LIKELY(SPA_CALLBACK_CHECK(_f,method,vers))) \
|
||||
res = _f->method((callbacks)->data, ## __VA_ARGS__); \
|
||||
res = (_f->method)((callbacks)->data, ## __VA_ARGS__); \
|
||||
res; \
|
||||
})
|
||||
#define spa_callbacks_call_fast_res(callbacks,type,res,method,vers,...) \
|
||||
({ \
|
||||
const type *_f = (const type *) (callbacks)->funcs; \
|
||||
res = _f->method((callbacks)->data, ## __VA_ARGS__); \
|
||||
res = (_f->method)((callbacks)->data, ## __VA_ARGS__); \
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue