On Monday, 2 May 2022 13:46:51 CEST Marek Lindner wrote:
The alfred server instance accepts event notification registration via the unix socket. These notification sockets only inform registered parties of the availability of an alfred datatype change. The actual data itself needs to be retrieved via the existing data retrieval mechanisms.
Unlike the update-command this event monitor allows:
- multiple parallel listeners
- programmatic access to changes without requiring multiple processes
The alfred client allows to monitor events via the newly added '-E' (event monitor) command line option. Serving as debugging tool and example code at the same time.
Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
v2:
- fix typ0s
- replace list_del_init() with list_del()
- remove unnecessary INIT_LIST_HEAD()
- change --event-monitor to not require an argument
This version cannot be applied on top of the current master. I have attached the diff for the things which (afaik) need to be changed when you rebase the patch.
I have also attached the change to support the reporting of the source mac for the changed dataset.
Kind regards, Sven