=================================================================== RCS file: /cvs/mandoc/mansearch.h,v retrieving revision 1.12 retrieving revision 1.14 diff -u -p -r1.12 -r1.14 --- mandoc/mansearch.h 2014/04/10 02:46:21 1.12 +++ mandoc/mansearch.h 2014/07/12 14:00:25 1.14 @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.12 2014/04/10 02:46:21 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.14 2014/07/12 14:00:25 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -82,9 +82,11 @@ struct mansearch { const char *sec; /* mansection/NULL */ uint64_t deftype; /* type if no key */ int flags; -#define MANSEARCH_WHATIS 0x01 /* whatis mode: equality, no key */ +#define MANSEARCH_WHATIS 0x01 /* whatis(1) mode: whole words, no keys */ +#define MANSEARCH_MAN 0x02 /* man(1) mode: string equality, no keys */ }; +int mansearch_setup(int); int mansearch(const struct mansearch *cfg, /* options */ const struct manpaths *paths, /* manpaths */ int argc, /* size of argv */