summaryrefslogtreecommitdiffstats
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-27 18:51:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-27 18:51:25 +0000
commitd8b402becc17ecde4e1ebe75eea8221fd42a162b (patch)
treeb6592c62f2c66ec51eadd067227d58db7ab3f8e3 /mansearch.h
parentc5990883f0c591898575364a94056380526ffc11 (diff)
downloadmandoc-d8b402becc17ecde4e1ebe75eea8221fd42a162b.tar.gz
Change the mansearch() interface to use the mlinks table in the database
and return a list of names with sections, used by apropos(1) for display. While here, improve uniformity of the interface by allocating the file name dynamically, just like the names list and the description.
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h
index e1616e05..9b7a0a2f 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -61,7 +61,8 @@
__BEGIN_DECLS
struct manpage {
- char file[PATH_MAX]; /* prefixed by manpath */
+ char *file; /* to be prefixed by manpath */
+ char *names; /* a list of names with sections */
char *desc; /* description of manpage */
int form; /* 0 == catpage */
};