diff page.h @ 79:52029a52a385

pasterd: revert using ktemplate
author David Demelier <markand@malikania.fr>
date Fri, 17 Mar 2023 07:43:20 +0100
parents 67b3d13a5035
children 1ffe2f5a8500
line wrap: on
line diff
--- a/page.h	Thu Mar 16 20:45:59 2023 +0100
+++ b/page.h	Fri Mar 17 07:43:20 2023 +0100
@@ -2,11 +2,11 @@
  * page.h -- page renderer
  *
  * Copyright (c) 2020-2023 David Demelier <markand@malikania.fr>
- * 
+ *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * copyright notice and this permission notice appear in all copies.
- * 
+ *
  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@@ -23,14 +23,14 @@
 #include <stdarg.h>
 #include <stdint.h>
 
-#include <jansson.h>
-
 #include <kcgi.h>
+#include <kcgihtml.h>
 
 void
-page(struct kreq *req, enum khttp status, const unsigned char *html, json_t *doc);
-
-void
-page_status(struct kreq *req, enum khttp status);
+page(struct kreq *req,
+     enum khttp status,
+     const char *title,
+     const unsigned char *html,
+     const struct ktemplate *tmpl);
 
 #endif /* !PASTER_PAGE_H */