=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -p -r1.10 -r1.11 --- mandoc/Attic/apropos_db.h 2011/11/27 23:11:37 1.10 +++ mandoc/Attic/apropos_db.h 2011/12/16 12:06:35 1.11 @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.10 2011/11/27 23:11:37 schwarze Exp $ */ +/* $Id: apropos_db.h,v 1.11 2011/12/16 12:06:35 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -17,8 +17,14 @@ #ifndef APROPOS_H #define APROPOS_H +enum restype { + RESTYPE_MAN, /* man(7) file */ + RESTYPE_MDOC, /* mdoc(7) file */ + RESTYPE_CAT /* pre-formatted file */ +}; + struct res { - char *type; /* file type: mdoc, man or cat */ + enum restype type; /* input file type */ char *file; /* file in file-system */ char *cat; /* category (3p, 3, etc.) */ char *title; /* title (FOO, etc.) */