Julian Bouzas
7044226f66
scripts: use 'filter.smart' prefix for smart filter properties
2023-10-02 10:44:46 -04:00
Julian Bouzas
0b44d9cf84
scripts: change filter.enabled property to filter.disabled
...
Avoids confusion with default value if the property is not defined.
2023-10-02 10:44:38 -04:00
George Kiagiadakis
1e40108d94
linking-utils: rename unwrap_find_target_event -> unwrap_select_target_event
2023-09-30 12:06:40 +03:00
George Kiagiadakis
c7b00599d7
scripts: remove 'active-features' session item constraints
...
I don't fully remember where this originates from, but it looks like
some sort of hack to workaround a race condition where the event handler
would try to iterate over items that were just created and were not yet
fully ready to be used.
2023-09-30 11:10:30 +03:00
George Kiagiadakis
6af88b283c
linking-utils: cleanup duplicate functions
2023-09-30 11:02:02 +03:00
George Kiagiadakis
43aa2d4952
scripts: don't use 'local' for file-wide scoped variables
...
Since all scripts run in a sandbox with their own global environment,
it means that they don't interfere with each other's global variables.
Therefore, all file-wide variables can be declared global without
any change in behavior. In my understanding, it is better to do so
because this means that any code accessing those variables is going
to access them directly from the global environment table with a simple
lookup rather than having each variable referenced in the local closure
of each function separately.
2023-09-29 23:13:28 +03:00
George Kiagiadakis
2f89c64b7f
docs: add documentation on device, default-nodes and linking scripts
2023-09-29 16:14:08 +03:00
George Kiagiadakis
493be2fae6
event: annotate key in wp_event_get_data
2023-09-26 10:11:36 +03:00
Ashok Sidipotu
d4f3e2bdca
tests: replace "policy" with "linking"
2023-09-26 10:09:47 +03:00
Ashok Sidipotu
0dcd28e50f
Lua scripts: replace "policy" with "linking"
2023-09-26 10:09:03 +03:00
Ashok Sidipotu
1f92767d4b
config: replace "policy" with "linking"
2023-09-26 10:07:57 +03:00
Ashok Sidipotu
70b781ed64
steam.conf: enhance the illustration of the config
2023-09-26 10:06:03 +03:00
Ashok Sidipotu
9aeaf7367e
bluetooth.conf: change the syntax for rules from Lua to JSON
2023-09-26 10:03:44 +03:00
Ashok Sidipotu
f4d421988c
access.conf: uncomment the rules the way they were before
2023-09-26 10:03:07 +03:00
George Kiagiadakis
6d7232a1fd
settings: correct class description
2023-09-26 10:00:43 +03:00
George Kiagiadakis
1e714fe784
session-item: improve class description
2023-09-26 09:57:50 +03:00
Ashok Sidipotu
da91c5d377
docs: add WpConf documentation page
2023-09-26 09:44:07 +03:00
Ashok Sidipotu
4594f4b7e7
docs: fix WpComponentLoader documentation page
2023-09-26 09:43:54 +03:00
George Kiagiadakis
91a8c344b1
m-std-event-source: restore the rescan_scheduled flag before rescanning
...
Fixes : #506
See also: !536
2023-09-24 00:26:27 +03:00
George Kiagiadakis
0d8dfc8187
tests: add test for glob patterns in hook dependencies
2023-09-24 00:23:34 +03:00
George Kiagiadakis
3823ea4b40
event: allow hook before/after strings to be glob patterns
2023-09-24 00:09:55 +03:00
Julian Bouzas
06fa06ca5c
scripts: fix minor issues with smart filters policy
...
The filter's destination target was not being found properly due to iterating
the matching rules table with ipairs instead of pairs... the later is meant to
be used with JSON objects. In addition, the filters were not being re-evaluated
and linked properly when a device node was removed, this is because of a typo in
the find-best-target.lua script.
See #501
2023-09-21 09:04:31 -04:00
Julian Bouzas
0c53f9b130
docs: fix warnings and errors in filter documentation
2023-09-21 05:41:52 -04:00
Julian Bouzas
3eaaae3a45
docs: Add filters documentation
2023-09-03 14:33:34 +00:00
Julian Bouzas
56017fdbe6
scripts: use filter-utils to implement smart filter policy
2023-09-03 14:33:34 +00:00
Julian Bouzas
1ba3844f2c
scripts: add filter-utils.lua
...
Utilities Lua script for the policy to easily handle filter nodes.
2023-09-03 14:33:34 +00:00
Julian Bouzas
b984af7c87
scripts: add filters_metadata.lua
...
Creates a filters metadata to configure filters at runtime.
2023-09-03 14:33:34 +00:00
Julian Bouzas
d383762812
device: remove echo-cancel configuration
...
This will be possible to do with the new filter-utils.lua design.
2023-09-03 14:33:34 +00:00
Duncan Overbruck
15f5d84d47
tests: add event dispatch order test for same priority events
2023-09-03 17:30:03 +03:00
Duncan Overbruck
bebee99fc8
event-dispatcher: sort same priority events by the order they have been received
2023-09-03 17:30:03 +03:00
George Kiagiadakis
67f9f63520
Merge branch '0.4' into next
2023-09-01 19:12:20 +03:00
George Kiagiadakis
02e1393c9f
policy-node: destroy node only after sending an error to the client
...
if the node is destroyed before, pw_stream shuts down and doesn't
relay the error to the application
2023-09-01 16:23:09 +03:00
Tom A. Wagner
6e81dc7a66
docs: Add missing '\since' attributes to types and functions that have been added in versions later than 0.4.0
2023-08-30 11:20:06 +02:00
Tom A. Wagner
3a4b91fad7
Add enum documentation and Since tag to the generated gir file
...
Fix gen-api-gtkdoc.py to also parse an enums detailed description, which may contain a `since` attribute.
This makes the enums documentation and `Since` attribute end up in the final .gir file.
2023-08-25 13:50:39 +02:00
Tom A. Wagner
fa22101530
gir: Add object documentation and Since tag to the generated gir file
...
Fix gen-api-gtkdoc.py to also parse a structs detailed description, which may contain a `since` attribute,
and to generate a gtkdoc definition for those structs in the output wp-gtkdoc.h.
This makes the structs documentation and `Since` attribute end up in the final .gir file.
2023-08-25 11:35:36 +02:00
Julian Bouzas
dcee74fcca
scripts: do not store the link in si_flags
...
Otherwise the link is not destroyed right away when doing silink:remove()
2023-08-15 16:32:19 -04:00
Ashok Sidipotu
591d0b4370
camera-monitors: add a config property for camera discovery timeout
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
2d4cdcd5da
wireplumber.conf: run monitors towards the end
...
This solves the problem of linkables not created for libcamera nodes. It makes
sense to run monitors towards the end when rest of the system is really
waiting for them.
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
359ea7b17d
monitor-utils: use uniform naming style for lib apis
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
426e1bbffe
camera monitors: introduce cam device arbitration logic
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
7bca8cacde
camera monitors: pass device and node properties as event data
...
This avoids event properties show up in device and node properties.
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
3fe930f15f
api.c: add wp_core_test_feature API
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
92de80eb2e
wireplumber.conf: add new v4l2 monitor hooks
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
f45d7b43f3
v4l2/monitors: rebase v4l2 monitor into a bunch of hooks
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
86ea1f61f9
wireplumber.conf: add the new libcamera monitor hooks
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
bb0e15e631
libcamera/monitors: rebase libcamera monitor into a bunch of hooks
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
6596d71c4f
monitor-utils: introduce monitor utils lua library
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
27c1ea869b
event*.c: add a few more log msgs
2023-08-15 07:14:59 +00:00
Ashok Sidipotu
03e6de9894
m-standard-source: handle create-* events
2023-08-15 07:14:59 +00:00
Julian Bouzas
227dd97036
m-lua-scripting: always parse JSON to String if its type is not recognized
...
This allows parsing JSON strings without quotes.
2023-08-11 14:48:13 -04:00