Home | History | Annotate | Line # | Download | only in dist
manconf.h revision 1.1.1.4
      1  1.1.1.4  christos /*	Id: manconf.h,v 1.7 2018/11/22 11:30:23 schwarze Exp  */
      2      1.1  christos /*
      3  1.1.1.4  christos  * Copyright (c) 2011, 2015, 2017, 2018 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.1.4  christos 	char	 *tag;
     34      1.1  christos 	size_t	  indent;
     35      1.1  christos 	size_t	  width;
     36      1.1  christos 	int	  fragment;
     37      1.1  christos 	int	  mdoc;
     38  1.1.1.2  christos 	int	  noval;
     39  1.1.1.4  christos 	int	  synopsisonly;
     40  1.1.1.4  christos 	int	  toc;
     41      1.1  christos };
     42      1.1  christos 
     43      1.1  christos struct	manconf {
     44      1.1  christos 	struct manoutput	  output;
     45      1.1  christos 	struct manpaths		  manpath;
     46      1.1  christos };
     47      1.1  christos 
     48      1.1  christos 
     49      1.1  christos void	 manconf_parse(struct manconf *, const char *, char *, char *);
     50  1.1.1.2  christos int	 manconf_output(struct manoutput *, const char *, int);
     51      1.1  christos void	 manconf_free(struct manconf *);
     52  1.1.1.3  christos void	 manpath_base(struct manpaths *);
     53