\r\n");
+
+ box_bottom(&tq);
+ tcp_qprintf(&tq, "\r\n");
+ html_footer(&tq);
+ http_output_queue(hc, &tq, "text/html; charset=UTF-8");
+
+ return 0;
+}
+
+/**
+ * HTML user interface setup code
+ */
+void
+htmlui_start(void)
+{
+ http_path_add("/", NULL, page_root);
+ http_path_add("/event", NULL, page_event);
+ http_path_add("/channel", NULL, page_channel);
+ http_path_add("/pvrlog", NULL, page_pvrlog);
+}
diff --git a/htmlui.h b/htmlui.h
new file mode 100644
index 00000000..dcf0f57d
--- /dev/null
+++ b/htmlui.h
@@ -0,0 +1,26 @@
+/*
+ * tvheadend, HTML user interface
+ * Copyright (C) 2007 Andreas Öman
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#ifndef HTMLUI_H_
+#define HTMLUI_H_
+
+#include "http.h"
+
+void htmlui_start(void);
+
+#endif /* HTMLUI_H_ */