aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'apropos_db.h')
-rw-r--r--apropos_db.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/apropos_db.h b/apropos_db.h
index be48b063..2af91206 100644
--- a/apropos_db.h
+++ b/apropos_db.h
@@ -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 <kristaps@bsd.lv>
*
@@ -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.) */