aboutsummaryrefslogtreecommitdiff
path: root/src/LuaEngine/LuaEngine.h
blob: 2a5eea4aa0ab8944af787f444d6f9346e19c5570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef YAPSSG_LUA_ENGINE_H
#define YAPSSG_LUA_ENGINE_H

#include <libxml/HTMLparser.h>

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