]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
target: use list for target events
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 23 Mar 2025 11:09:28 +0000 (12:09 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 5 Apr 2025 06:23:37 +0000 (06:23 +0000)
commitc023534e7b6f61dddf91fc6ca4644d4071bb73dc
tree0b15566cb391752cefc92c48def0c98ce42b856b
parent04124c77f48b9748b88b4ccf77a36665855ee73e
target: use list for target events

To simplify removing an event when it's set to an empty string,
switch event list from hardcoded simply linked list to helper's
double linked list.

While there, move the declaration of struct target_event_action
in 'target.c' as it is not anymore visible outside.

Change-Id: I799754c80055dc6d22db55aca483757e833714ff
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8813
Tested-by: jenkins
src/target/target.c
src/target/target.h