1 /*
2 * lexgrog.h: interface to extracting whatis info
3 *
4 * Copyright (C) 1994, 1995 Graeme W. Wilford. (Wilf.)
5 * Copyright (C) 2001-2022 Colin Watson.
6 *
7 * This file is part of man-db.
8 *
9 * man-db is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * man-db is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with man-db; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 #define MANPAGE 0
25 #define CATPAGE 1
26
27 #include "decompress.h"
28
29 typedef struct lexgrog {
30 int type;
31 char *whatis;
32 char *filters;
33 } lexgrog;
34
35 extern int find_name (const char *file, const char *filename,
36 lexgrog *p_lg, const char *encoding);
37 extern int find_name_decompressed (decompress *d, const char *filename,
38 lexgrog *p_lg);