mandoc: update to 1.14.5
[unleashed.git] / bin / mandoc / main.h
blob19a630cde8b61a0a215568bbfb86fb76823e7bc1
1 /* $Id: main.h,v 1.30 2019/03/03 13:02:11 schwarze Exp $ */
2 /*
3 * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4 * Copyright (c) 2014, 2015, 2019 Ingo Schwarze <schwarze@openbsd.org>
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.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS 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.
19 struct roff_meta;
20 struct manoutput;
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.
29 void *html_alloc(const struct manoutput *);
30 void html_mdoc(void *, const struct roff_meta *);
31 void html_man(void *, const struct roff_meta *);
32 void html_reset(void *);
33 void html_free(void *);
35 void tree_mdoc(void *, const struct roff_meta *);
36 void tree_man(void *, const struct roff_meta *);
38 void man_mdoc(void *, const struct roff_meta *);
40 void *locale_alloc(const struct manoutput *);
41 void *utf8_alloc(const struct manoutput *);
42 void *ascii_alloc(const struct manoutput *);
43 void ascii_free(void *);
45 void *pdf_alloc(const struct manoutput *);
46 void *ps_alloc(const struct manoutput *);
47 void pspdf_free(void *);
49 void terminal_mdoc(void *, const struct roff_meta *);
50 void terminal_man(void *, const struct roff_meta *);
51 void terminal_sepline(void *);
53 void markdown_mdoc(void *, const struct roff_meta *);