1294109Sbapt/* $OpenBSD$ */ 2294109Sbapt/* 3294109Sbapt * Copyright (c) 2011, 2015 Ingo Schwarze <schwarze@openbsd.org> 4294109Sbapt * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> 5294109Sbapt * 6294109Sbapt * Permission to use, copy, modify, and distribute this software for any 7294109Sbapt * purpose with or without fee is hereby granted, provided that the above 8294109Sbapt * copyright notice and this permission notice appear in all copies. 9294109Sbapt * 10294109Sbapt * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES 11294109Sbapt * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12294109Sbapt * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR 13294109Sbapt * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14294109Sbapt * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15294109Sbapt * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16294109Sbapt * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17294109Sbapt */ 18294109Sbapt 19294109Sbapt/* List of unique, absolute paths to manual trees. */ 20294109Sbapt 21294109Sbaptstruct manpaths { 22294109Sbapt char **paths; 23294109Sbapt size_t sz; 24294109Sbapt}; 25294109Sbapt 26294109Sbapt/* Data from -O options and man.conf(5) output directives. */ 27294109Sbapt 28294109Sbaptstruct manoutput { 29294109Sbapt char *includes; 30294109Sbapt char *man; 31294109Sbapt char *paper; 32294109Sbapt char *style; 33294109Sbapt size_t indent; 34294109Sbapt size_t width; 35294109Sbapt int fragment; 36294109Sbapt int mdoc; 37294109Sbapt int synopsisonly; 38294109Sbapt}; 39294109Sbapt 40294109Sbaptstruct manconf { 41294109Sbapt struct manoutput output; 42294109Sbapt struct manpaths manpath; 43294109Sbapt}; 44294109Sbapt 45294109Sbapt 46294109Sbaptvoid manconf_parse(struct manconf *, const char *, char *, char *); 47294109Sbaptvoid manconf_output(struct manoutput *, const char *); 48294109Sbaptvoid manconf_free(struct manconf *); 49