mandoc(1): Update to 1.9.15.
[dragonfly.git] / usr.bin / mandoc / main.h
blobd575d5ad13e0f818138945feeb1cd790b1ef40b7
1 /* $Id: main.h,v 1.2 2010/01/29 14:39:38 kristaps Exp $ */
2 /*
3 * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #ifndef MAIN_H
18 #define MAIN_H
20 __BEGIN_DECLS
22 struct mdoc;
23 struct man;
26 * Definitions for main.c-visible output device functions, e.g., -Thtml
27 * and -Tascii. Note that ascii_alloc() is named as such in
28 * anticipation of latin1_alloc() and so on, all of which map into the
29 * terminal output routines with different character settings.
32 void *html_alloc(char *);
33 void *xhtml_alloc(char *);
34 void html_mdoc(void *, const struct mdoc *);
35 void html_man(void *, const struct man *);
36 void html_free(void *);
38 void tree_mdoc(void *, const struct mdoc *);
39 void tree_man(void *, const struct man *);
41 void *ascii_alloc(void);
42 void terminal_mdoc(void *, const struct mdoc *);
43 void terminal_man(void *, const struct man *);
44 void terminal_free(void *);
46 __END_DECLS
48 #endif /*!MAIN_H*/