mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
hook: separate spa_callbacks from the hook
Make a spa_callbacks with just the functions and data and use this in the hook and objects.
This commit is contained in:
parent
6ee192dff5
commit
448c1937ad
28 changed files with 97 additions and 84 deletions
|
|
@ -86,11 +86,11 @@ struct spa_monitor_callbacks {
|
|||
int (*event) (void *data, struct spa_event *event);
|
||||
};
|
||||
|
||||
#define spa_monitor_call(hook,method,version,...) \
|
||||
#define spa_monitor_call(callbacks,method,version,...) \
|
||||
({ \
|
||||
int __res = 0; \
|
||||
spa_hook_call_res(hook, struct spa_monitor_callbacks, __res, \
|
||||
method, version, ##__VA_ARGS__); \
|
||||
spa_callbacks_call_res(callbacks, struct spa_monitor_callbacks, \
|
||||
__res, method, version, ##__VA_ARGS__); \
|
||||
__res; \
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue