Mercurial > paster
comparison fmt.h @ 73:6792975da9a0
pasterd: start removing themes
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 21 Feb 2023 22:22:02 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
72:1a98bc0daa49 | 73:6792975da9a0 |
---|---|
1 /* | |
2 * fmt.h -- page formatter | |
3 * | |
4 * Copyright (c) 2020-2023 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 PASTER_FMT_H | |
20 #define PASTER_FMT_H | |
21 | |
22 struct kreq; | |
23 struct khtmlreq; | |
24 struct paste; | |
25 | |
26 struct fmt_printer { | |
27 const char *keyword; | |
28 void (*printer)(struct kreq *, struct khtmlreq *, const void *); | |
29 }; | |
30 | |
31 void | |
32 fmt(struct kreq *, const unsigned char *, const void *, const struct fmt_printer *); | |
33 | |
34 #endif /* !PASTER_FMT_H */ |