=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.h,v retrieving revision 1.8 retrieving revision 1.11 diff -u -p -r1.8 -r1.11 --- mandoc/Attic/apropos_db.h 2011/11/26 22:38:11 1.8 +++ mandoc/Attic/apropos_db.h 2011/12/16 12:06:35 1.11 @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.8 2011/11/26 22:38:11 schwarze Exp $ */ +/* $Id: apropos_db.h,v 1.11 2011/12/16 12:06:35 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -17,7 +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 { + enum restype type; /* input file type */ char *file; /* file in file-system */ char *cat; /* category (3p, 3, etc.) */ char *title; /* title (FOO, etc.) */ @@ -45,6 +52,7 @@ int apropos_search(int, char **, const struct opts void (*)(struct res *, size_t, void *)); struct expr *exprcomp(int, char *[], size_t *); void exprfree(struct expr *); +struct expr *termcomp(int, char *[], size_t *); __END_DECLS