mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-14 08:56:37 -05:00
doc: clarify version field in events
This commit is contained in:
parent
ca5836cdf4
commit
6e2d3feb07
1 changed files with 5 additions and 0 deletions
|
|
@ -256,6 +256,11 @@ be called with `my_data` as the first data field. The events are usually
|
||||||
also triggered when the listener is added, to enumerate the current
|
also triggered when the listener is added, to enumerate the current
|
||||||
state of the object.
|
state of the object.
|
||||||
|
|
||||||
|
Events have a `version` field, set to `SPA_VERSION_NODE_EVENTS` in the
|
||||||
|
above example. It should contain the version of the event structure
|
||||||
|
you compiled with. When new events are added later, the version field
|
||||||
|
will be checked and the new signal will be ignored for older versions.
|
||||||
|
|
||||||
You can remove your listener with:
|
You can remove your listener with:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue