diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-27 18:51:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-27 18:51:25 +0000 |
commit | a7ed20ecbd09e040f50a359f60f9ac351bafd50f (patch) | |
tree | 206053d141537f164a475ed3e3189b2821fca7e0 /mansearch.h | |
parent | f025d38ef1ad098b22a683e883f7b6ddce37cd66 (diff) | |
download | mandoc-a7ed20ecbd09e040f50a359f60f9ac351bafd50f.tar.gz mandoc-a7ed20ecbd09e040f50a359f60f9ac351bafd50f.tar.zst mandoc-a7ed20ecbd09e040f50a359f60f9ac351bafd50f.zip |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mansearch.h b/mansearch.h index 25e6d6b7..d433e25d 100644 --- a/mansearch.h +++ b/mansearch.h @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.4 2013/06/06 14:27:02 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.5 2013/12/27 18:51:25 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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 */ }; |