diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-07-03 08:00:50 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-07-03 08:00:50 -0600 |
commit | 1d5a211e1ae3645e9c13163b76fea0a3c87f46f1 (patch) | |
tree | 610128434e35b9b6028609d7cb5d67bcd13b3379 /flashimg/cpu_main/flash_static.h | |
parent | 1be02f3e2379b2cd06dbae775504948ff37bf89a (diff) | |
parent | ad2ef1642096665be998e83f9b6c4b7de308b644 (diff) |
Diffstat (limited to 'flashimg/cpu_main/flash_static.h')
-rw-r--r-- | flashimg/cpu_main/flash_static.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/flashimg/cpu_main/flash_static.h b/flashimg/cpu_main/flash_static.h new file mode 100644 index 0000000..b2eeaa9 --- /dev/null +++ b/flashimg/cpu_main/flash_static.h @@ -0,0 +1,21 @@ +/* flashimg/cpu_main/flash_static.h - Serve static files from flash over 9P + * + * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com> + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +#ifndef _FLASHIMG_CPU_MAIN_FLASH_STATIC_H_ +#define _FLASHIMG_CPU_MAIN_FLASH_STATIC_H_ + +#include <util9p/static.h> + +struct flash_static_file { + struct _util9p_static_common c; + + struct flashio *io; + char *data_start; /* must not be NULL */ + char *data_end; /* must not be NULL */ +}; +LO_IMPLEMENTATION_H(lib9p_srv_file, struct flash_static_file, flash_static_file); + +#endif /* _FLASHIMG_CPU_MAIN_FLASH_STATIC_H_ */ |