comparison scid/pageutil.h @ 29:695637f1d8a7

scid: first index page in javascript
author David Demelier <markand@malikania.fr>
date Thu, 04 Aug 2022 14:13:58 +0200
parents scid/page.h@7e10cace67a3
children 081e1c258e64
comparison
equal deleted inserted replaced
28:4c16bb25e4f1 29:695637f1d8a7
1 /*
2 * pageutil.h -- page utilities
3 *
4 * Copyright (c) 2021 David Demelier <markand@malikania.fr>
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 #ifndef SCI_PAGE_H
20 #define SCI_PAGE_H
21
22 #include <sys/types.h>
23 #include <stdarg.h>
24 #include <stdint.h>
25
26 #include <kcgi.h>
27
28 #include <jansson.h>
29
30 void
31 pageutil_render(struct kreq *, enum khttp, enum kmime, const char *);
32
33 void
34 pageutil_status(struct kreq *, enum khttp);
35
36 void
37 pageutil_json(struct kreq *req, enum khttp status, json_t *doc);
38
39 #endif /* !SCI_PAGE_H */