mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
map: handle more error cases
This commit is contained in:
parent
448c1937ad
commit
c348790ca1
4 changed files with 29 additions and 19 deletions
|
|
@ -230,11 +230,13 @@ struct spa_bt_transport {
|
|||
#define spa_bt_transport_set_implementation(t,_impl,_data) \
|
||||
(t)->impl = SPA_CALLBACKS_INIT(_impl, _data)
|
||||
|
||||
#define spa_bt_transport_impl(t,m,v,...) \
|
||||
({ \
|
||||
int res = 0; \
|
||||
spa_callbacks_call_res(&(t)->impl, struct spa_bt_transport_implementation, res, m, v, ##__VA_ARGS__); \
|
||||
res; \
|
||||
#define spa_bt_transport_impl(t,m,v,...) \
|
||||
({ \
|
||||
int res = 0; \
|
||||
spa_callbacks_call_res(&(t)->impl, \
|
||||
struct spa_bt_transport_implementation, \
|
||||
res, m, v, ##__VA_ARGS__); \
|
||||
res; \
|
||||
})
|
||||
|
||||
#define spa_bt_transport_acquire(t,o) spa_bt_transport_impl(t, acquire, 0, o)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue