nrelease - fix/improve livecd
[dragonfly.git] / contrib / mdocml / main.h
CommitLineData
54ba9607 1/* $Id: main.h,v 1.30 2019/03/03 13:02:11 schwarze Exp $ */
80387638 2/*
36342e81 3 * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
54ba9607 4 * Copyright (c) 2014, 2015, 2019 Ingo Schwarze <schwarze@openbsd.org>
80387638
SW
5 *
6 * Permission to use, copy, modify, and 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 *
54ba9607 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
80387638 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
54ba9607 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
80387638
SW
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 */
80387638 18
54ba9607
SW
19struct roff_meta;
20struct manoutput;
80387638 21
070c62a6 22/*
80387638
SW
23 * Definitions for main.c-visible output device functions, e.g., -Thtml
24 * and -Tascii. Note that ascii_alloc() is named as such in
25 * anticipation of latin1_alloc() and so on, all of which map into the
26 * terminal output routines with different character settings.
27 */
28
54ba9607
SW
29void *html_alloc(const struct manoutput *);
30void html_mdoc(void *, const struct roff_meta *);
31void html_man(void *, const struct roff_meta *);
32void html_reset(void *);
80387638
SW
33void html_free(void *);
34
54ba9607
SW
35void tree_mdoc(void *, const struct roff_meta *);
36void tree_man(void *, const struct roff_meta *);
80387638 37
54ba9607 38void man_mdoc(void *, const struct roff_meta *);
36342e81 39
54ba9607
SW
40void *locale_alloc(const struct manoutput *);
41void *utf8_alloc(const struct manoutput *);
42void *ascii_alloc(const struct manoutput *);
80387638
SW
43void ascii_free(void *);
44
54ba9607
SW
45void *pdf_alloc(const struct manoutput *);
46void *ps_alloc(const struct manoutput *);
80387638
SW
47void pspdf_free(void *);
48
54ba9607
SW
49void terminal_mdoc(void *, const struct roff_meta *);
50void terminal_man(void *, const struct roff_meta *);
51void terminal_sepline(void *);
80387638 52
54ba9607 53void markdown_mdoc(void *, const struct roff_meta *);