Store device structs in a dynamic list
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user