From a7ed20ecbd09e040f50a359f60f9ac351bafd50f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 27 Dec 2013 18:51:25 +0000 Subject: 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. --- mansearch.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mansearch.h') 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 * @@ -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 */ }; -- cgit v1.2.3-56-ge451