DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
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 src/web/wizard/gen_theme_blobs.py - DO NOT EDIT BY HAND.
5// Add or edit a theme under src/web/themes/ and re-run the generator.
6
7/**
8 * @file binary_asset_blobs.h
9 * @brief Layer 7 - toggleable embedded theme stylesheets (DETWS_ENABLE_THEMES).
10 *
11 * A registry of minified CSS themes in flash (DROM), for serving/switching a theme at runtime.
12 * Behind DETWS_ENABLE_THEMES so a build that does not want it links nothing.
13 */
14
15#ifndef DETERMINISTICESPASYNCWEBSERVER_BINARY_ASSET_BLOBS_H
16#define DETERMINISTICESPASYNCWEBSERVER_BINARY_ASSET_BLOBS_H
17
18#include "ServerConfig.h"
19
20#if DETWS_ENABLE_THEMES
21
22#include <stddef.h>
23
24/** @brief One embedded theme: its name and its minified CSS (NUL-terminated flash string). */
25struct DetThemeBlob
26{
27 const char *name;
28 const char *css;
29};
30
31/** @brief The embedded theme registry (sorted by name) and its count. */
32extern const DetThemeBlob DETWS_THEME_BLOBS[];
33extern const size_t DETWS_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 */
39const char *detws_theme_css(const char *name);
40
41#endif // DETWS_ENABLE_THEMES
42#endif // DETERMINISTICESPASYNCWEBSERVER_BINARY_ASSET_BLOBS_H
User-facing configuration for DeterministicESPAsyncWebServer.