Home | History | Annotate | Line # | Download | only in dist
manconf.h revision 1.1
      1  1.1  christos /*	$OpenBSD$	*/
      2  1.1  christos /*
      3  1.1  christos  * Copyright (c) 2011, 2015 Ingo Schwarze <schwarze (at) openbsd.org>
      4  1.1  christos  * Copyright (c) 2011 Kristaps Dzonsons <kristaps (at) bsd.lv>
      5  1.1  christos  *
      6  1.1  christos  * Permission to use, copy, modify, and distribute this software for any
      7  1.1  christos  * purpose with or without fee is hereby granted, provided that the above
      8  1.1  christos  * copyright notice and this permission notice appear in all copies.
      9  1.1  christos  *
     10  1.1  christos  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
     11  1.1  christos  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     12  1.1  christos  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
     13  1.1  christos  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     14  1.1  christos  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     15  1.1  christos  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     16  1.1  christos  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     17  1.1  christos  */
     18  1.1  christos 
     19  1.1  christos /* List of unique, absolute paths to manual trees. */
     20  1.1  christos 
     21  1.1  christos struct	manpaths {
     22  1.1  christos 	char	**paths;
     23  1.1  christos 	size_t	  sz;
     24  1.1  christos };
     25  1.1  christos 
     26  1.1  christos /* Data from -O options and man.conf(5) output directives. */
     27  1.1  christos 
     28  1.1  christos struct	manoutput {
     29  1.1  christos 	char	 *includes;
     30  1.1  christos 	char	 *man;
     31  1.1  christos 	char	 *paper;
     32  1.1  christos 	char	 *style;
     33  1.1  christos 	size_t	  indent;
     34  1.1  christos 	size_t	  width;
     35  1.1  christos 	int	  fragment;
     36  1.1  christos 	int	  mdoc;
     37  1.1  christos 	int	  synopsisonly;
     38  1.1  christos };
     39  1.1  christos 
     40  1.1  christos struct	manconf {
     41  1.1  christos 	struct manoutput	  output;
     42  1.1  christos 	struct manpaths		  manpath;
     43  1.1  christos };
     44  1.1  christos 
     45  1.1  christos 
     46  1.1  christos void	 manconf_parse(struct manconf *, const char *, char *, char *);
     47  1.1  christos void	 manconf_output(struct manoutput *, const char *);
     48  1.1  christos void	 manconf_free(struct manconf *);
     49