mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
loop: deprecate the hooks
They were mostly useful for locking and unlocking but since that is builtin right now, we should remove those eventually.
This commit is contained in:
parent
8e32afb863
commit
550ec8c2a4
1 changed files with 7 additions and 5 deletions
|
|
@ -191,15 +191,17 @@ SPA_API_LOOP int spa_loop_locked(struct spa_loop *object,
|
||||||
|
|
||||||
/** Control hooks. These hooks can't be removed from their
|
/** Control hooks. These hooks can't be removed from their
|
||||||
* callbacks and must be removed from a safe place (when the loop
|
* callbacks and must be removed from a safe place (when the loop
|
||||||
* is not running or when it is locked). */
|
* is not running or when it is locked).
|
||||||
|
*
|
||||||
|
* \deprecated This was used to lock and unlock the loop but because
|
||||||
|
* this is now standard behaviour, these extra hooks are not very
|
||||||
|
* useful anymore. */
|
||||||
struct spa_loop_control_hooks {
|
struct spa_loop_control_hooks {
|
||||||
#define SPA_VERSION_LOOP_CONTROL_HOOKS 0
|
#define SPA_VERSION_LOOP_CONTROL_HOOKS 0
|
||||||
uint32_t version;
|
uint32_t version;
|
||||||
/** Executed right before waiting for events. It is typically used to
|
/** Executed right before waiting for events. \deprecated */
|
||||||
* release locks. */
|
|
||||||
void (*before) (void *data);
|
void (*before) (void *data);
|
||||||
/** Executed right after waiting for events. It is typically used to
|
/** Executed right after waiting for events. \deprecated */
|
||||||
* reacquire locks. */
|
|
||||||
void (*after) (void *data);
|
void (*after) (void *data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue