1*cec8643bSMichal Nowak /* $Id: main.h,v 1.30 2019/03/03 13:02:11 schwarze Exp $ */ 295c635efSGarrett D'Amore /* 395c635efSGarrett D'Amore * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> 4*cec8643bSMichal Nowak * Copyright (c) 2014, 2015, 2019 Ingo Schwarze <schwarze@openbsd.org> 595c635efSGarrett D'Amore * 695c635efSGarrett D'Amore * Permission to use, copy, modify, and distribute this software for any 795c635efSGarrett D'Amore * purpose with or without fee is hereby granted, provided that the above 895c635efSGarrett D'Amore * copyright notice and this permission notice appear in all copies. 995c635efSGarrett D'Amore * 10371584c2SYuri Pankov * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES 1195c635efSGarrett D'Amore * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12371584c2SYuri Pankov * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR 1395c635efSGarrett D'Amore * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1495c635efSGarrett D'Amore * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1595c635efSGarrett D'Amore * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1695c635efSGarrett D'Amore * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1795c635efSGarrett D'Amore */ 1895c635efSGarrett D'Amore 19*cec8643bSMichal Nowak struct roff_meta; 20371584c2SYuri Pankov struct manoutput; 2195c635efSGarrett D'Amore 2295c635efSGarrett D'Amore /* 2395c635efSGarrett D'Amore * Definitions for main.c-visible output device functions, e.g., -Thtml 2495c635efSGarrett D'Amore * and -Tascii. Note that ascii_alloc() is named as such in 2595c635efSGarrett D'Amore * anticipation of latin1_alloc() and so on, all of which map into the 2695c635efSGarrett D'Amore * terminal output routines with different character settings. 2795c635efSGarrett D'Amore */ 2895c635efSGarrett D'Amore 29371584c2SYuri Pankov void *html_alloc(const struct manoutput *); 30*cec8643bSMichal Nowak void html_mdoc(void *, const struct roff_meta *); 31*cec8643bSMichal Nowak void html_man(void *, const struct roff_meta *); 32*cec8643bSMichal Nowak void html_reset(void *); 3395c635efSGarrett D'Amore void html_free(void *); 3495c635efSGarrett D'Amore 35*cec8643bSMichal Nowak void tree_mdoc(void *, const struct roff_meta *); 36*cec8643bSMichal Nowak void tree_man(void *, const struct roff_meta *); 3795c635efSGarrett D'Amore 38*cec8643bSMichal Nowak void man_mdoc(void *, const struct roff_meta *); 3995c635efSGarrett D'Amore 40371584c2SYuri Pankov void *locale_alloc(const struct manoutput *); 41371584c2SYuri Pankov void *utf8_alloc(const struct manoutput *); 42371584c2SYuri Pankov void *ascii_alloc(const struct manoutput *); 4395c635efSGarrett D'Amore void ascii_free(void *); 4495c635efSGarrett D'Amore 45371584c2SYuri Pankov void *pdf_alloc(const struct manoutput *); 46371584c2SYuri Pankov void *ps_alloc(const struct manoutput *); 4795c635efSGarrett D'Amore void pspdf_free(void *); 4895c635efSGarrett D'Amore 49*cec8643bSMichal Nowak void terminal_mdoc(void *, const struct roff_meta *); 50*cec8643bSMichal Nowak void terminal_man(void *, const struct roff_meta *); 51371584c2SYuri Pankov void terminal_sepline(void *); 52c66b8046SYuri Pankov 53*cec8643bSMichal Nowak void markdown_mdoc(void *, const struct roff_meta *); 54