Mercurial
diff seobeo/seobeo_internal.h @ 132:7a63e41a21fb
[Seobeo] Added debug targets.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 09 Jan 2026 08:23:54 -0800 |
| parents | f236c895604e |
| children | 71ad34a8bc9a a8976a008a9d |
line wrap: on
line diff
--- a/seobeo/seobeo_internal.h Fri Jan 09 07:42:04 2026 -0800 +++ b/seobeo/seobeo_internal.h Fri Jan 09 08:23:54 2026 -0800 @@ -50,8 +50,14 @@ atomic_bool destroyed; } Seobeo_Handle; -// HTML cache type: maps file paths (char*) to file contents (char*) -typedef Dowa_KV(char*, char*) Seobeo_Cache_Entry; +// Cached file entry with content and size (for binary file support) +typedef struct { + char *content; + size_t size; +} Seobeo_Cached_File; + +// HTML cache type: maps file paths (char*) to cached file entries (Seobeo_Cached_File*) +typedef Dowa_KV(char*, Seobeo_Cached_File*) Seobeo_Cache_Entry; typedef struct { Seobeo_Handle *srv;