Store device structs in a dynamic list

This commit is contained in:
2025-10-03 22:25:16 +02:00
parent c0178a1405
commit 57ba9ff126
10 changed files with 44 additions and 24 deletions

View File

@ -7,7 +7,8 @@
typedef int32_t (*DevFn)(uint8_t *buffer, size_t len, void *extra);
typedef struct {
typedef struct Dev {
struct Dev *next;
DevFn fns[DEV_FNS_MAX];
} Dev;