]> Pileus Git - site/blobdiff - src/html.h
Support submenus
[site] / src / html.h
index b3a5d72d96cc937568871bc4e2336f671605baf9..a2932a7962b4a8d46db0d60c35c8eb294f3ba40a 100644 (file)
@@ -23,6 +23,7 @@ struct page_t {
        char     *title; // title tag
        char     *keys;  // meta keywords tag, or NULL
        char     *desc;  // meta description tag, or NULL
+       char     *error; // http status
        char     *text;  // unfiltered text
        char     *html;  // generated html
 };
@@ -40,9 +41,11 @@ struct menu_t {
 /* Helper functions */
 void href(const char *url);
 
-void print_link(char *path, char *name, int cur);
+void print_link(char *path, char *name, int cur, int dir);
 void print_menu(menu_t *menu, int first, int last);
+void print_menu_start(void);
+void print_menu_end(void);
 
 /* Global functions */
-void print_header(void);
+void print_header(page_t *page);
 void print_page(page_t *page, menu_t *menu);