summaryrefslogtreecommitdiffstats
path: root/apropos_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'apropos_db.h')
-rw-r--r--apropos_db.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/apropos_db.h b/apropos_db.h
index 1accaa1f..9af530a6 100644
--- a/apropos_db.h
+++ b/apropos_db.h
@@ -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.) */