From 99e1103b79b50b92a7784d4c538230f22e724f99 Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 6 Oct 2026 10:11:38 -0400 Subject: feat: add page:emit --- src/LuaEngine/LuaEngine.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/LuaEngine/LuaEngine.h') diff --git a/src/LuaEngine/LuaEngine.h b/src/LuaEngine/LuaEngine.h index bd035b9..2a5eea4 100644 --- a/src/LuaEngine/LuaEngine.h +++ b/src/LuaEngine/LuaEngine.h @@ -3,6 +3,19 @@ #include -int process_html_document(htmlDocPtr document, const char *input_path); +typedef struct { + char *path; + htmlDocPtr document; +} EmittedPage; + +typedef struct { + EmittedPage *items; + size_t length; + size_t capacity; +} EmitList; + +int process_html_document(htmlDocPtr document, const char *input_path, + EmitList *emits); +void emit_list_free(EmitList *emits); #endif -- cgit v1.3