mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
12 lines
291 B
C
12 lines
291 B
C
#ifndef _FIRMWARE_H
|
|
#define _FIRMWARE_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef void (*firmware_callback_t)(void *ctx, void *data, size_t size);
|
|
|
|
// firmware data is only valid only for the duration of the callback
|
|
int firmware_load(const char *name, firmware_callback_t callback, void *ctx);
|
|
|
|
#endif
|