1*61d06d6bSBaptiste Daroussin /* $Id: manpath.h,v 1.7 2014/12/01 04:05:32 schwarze Exp $ */ 2*61d06d6bSBaptiste Daroussin /* 3*61d06d6bSBaptiste Daroussin * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> 4*61d06d6bSBaptiste Daroussin * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> 5*61d06d6bSBaptiste Daroussin * 6*61d06d6bSBaptiste Daroussin * Permission to use, copy, modify, and distribute this software for any 7*61d06d6bSBaptiste Daroussin * purpose with or without fee is hereby granted, provided that the above 8*61d06d6bSBaptiste Daroussin * copyright notice and this permission notice appear in all copies. 9*61d06d6bSBaptiste Daroussin * 10*61d06d6bSBaptiste Daroussin * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11*61d06d6bSBaptiste Daroussin * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12*61d06d6bSBaptiste Daroussin * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13*61d06d6bSBaptiste Daroussin * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14*61d06d6bSBaptiste Daroussin * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15*61d06d6bSBaptiste Daroussin * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16*61d06d6bSBaptiste Daroussin * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17*61d06d6bSBaptiste Daroussin */ 18*61d06d6bSBaptiste Daroussin 19*61d06d6bSBaptiste Daroussin /* 20*61d06d6bSBaptiste Daroussin * Unsorted list of unique, absolute paths to be searched for manual 21*61d06d6bSBaptiste Daroussin * databases. 22*61d06d6bSBaptiste Daroussin */ 23*61d06d6bSBaptiste Daroussin struct manpaths { 24*61d06d6bSBaptiste Daroussin size_t sz; 25*61d06d6bSBaptiste Daroussin char **paths; 26*61d06d6bSBaptiste Daroussin }; 27*61d06d6bSBaptiste Daroussin 28*61d06d6bSBaptiste Daroussin __BEGIN_DECLS 29*61d06d6bSBaptiste Daroussin 30*61d06d6bSBaptiste Daroussin void manpath_manconf(struct manpaths *, const char *); 31*61d06d6bSBaptiste Daroussin void manpath_parse(struct manpaths *, const char *, char *, char *); 32*61d06d6bSBaptiste Daroussin void manpath_free(struct manpaths *); 33*61d06d6bSBaptiste Daroussin 34*61d06d6bSBaptiste Daroussin __END_DECLS 35