1 /*
2 * descriptions.h: Interface to manipulating man page descriptions
3 *
4 * Copyright (C) 2002, 2007, 2008, 2011 Colin Watson.
5 *
6 * This file is part of man-db.
7 *
8 * man-db is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * man-db is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with man-db; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "gl_list.h"
24
25 #include "filenames.h"
26
27 #include "mydbm.h"
28
29 struct page_description {
30 char *name;
31 char *whatis;
32 };
33
34 /* Returns a list of struct page_description. */
35 extern gl_list_t parse_descriptions (const char *base, const char *whatis);
36 extern void store_descriptions (MYDBM_FILE dbf, gl_list_t descs,
37 struct mandata *info,
38 const char *path, const char *base,
39 gl_list_t trace);