ProtoCore
v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
binary_asset_blobs.h
Go to the documentation of this file.
1
// Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2
// SPDX-License-Identifier: AGPL-3.0-or-later
3
//
4
// GENERATED by web_assets/wizard/gen_theme_blobs.py - DO NOT EDIT BY HAND.
5
// Add or edit a theme under web_assets/themes/ and re-run the generator.
6
7
/**
8
* @file binary_asset_blobs.h
9
* @brief Layer 7 - toggleable embedded theme stylesheets (PC_ENABLE_THEMES).
10
*
11
* A registry of minified CSS themes in flash (DROM), for serving/switching a theme at runtime.
12
* Behind PC_ENABLE_THEMES so a build that does not want it links nothing.
13
*/
14
15
#ifndef PROTOCORE_BINARY_ASSET_BLOBS_H
16
#define PROTOCORE_BINARY_ASSET_BLOBS_H
17
18
#include "
protocore_config.h
"
19
20
#if PC_ENABLE_THEMES
21
22
#include <stddef.h>
23
24
/** @brief One embedded theme: its name and its minified CSS (NUL-terminated flash string). */
25
struct
pc_theme_blob
26
{
27
const
char
*name;
28
const
char
*css;
29
};
30
31
/** @brief The embedded theme registry (sorted by name) and its count. */
32
extern
const
pc_theme_blob PC_THEME_BLOBS[];
33
extern
const
size_t
PC_THEME_BLOB_COUNT;
34
35
/**
36
* @brief Look up a theme's CSS by name (exact match).
37
* @return the NUL-terminated minified CSS, or nullptr if no theme by that name is embedded.
38
*/
39
const
char
*pc_theme_css(
const
char
*name);
40
41
#endif
// PC_ENABLE_THEMES
42
#endif
// PROTOCORE_BINARY_ASSET_BLOBS_H
protocore_config.h
User-facing configuration for ProtoCore.
src
network_drivers
application
binary_asset_blobs.h
Generated by
1.9.8