mansearch.h (260e9a87725c090ba5835b1f9f0b62fa2f96036f) | mansearch.h (371584c2eae4cf827fd406ba26c14f021adaaa70) |
---|---|
1/* $Id: mansearch.h,v 1.23 2014/12/01 08:05:52 schwarze Exp $ */ | 1/* $Id: mansearch.h,v 1.24 2015/11/07 14:01:16 schwarze Exp $ */ |
2/* 3 * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> 4 * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * --- 80 unchanged lines hidden (view full) --- 90struct mansearch { 91 const char *arch; /* architecture/NULL */ 92 const char *sec; /* mansection/NULL */ 93 const char *outkey; /* show content of this macro */ 94 enum argmode argmode; /* interpretation of arguments */ 95 int firstmatch; /* first matching database only */ 96}; 97 | 2/* 3 * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> 4 * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * --- 80 unchanged lines hidden (view full) --- 90struct mansearch { 91 const char *arch; /* architecture/NULL */ 92 const char *sec; /* mansection/NULL */ 93 const char *outkey; /* show content of this macro */ 94 enum argmode argmode; /* interpretation of arguments */ 95 int firstmatch; /* first matching database only */ 96}; 97 |
98__BEGIN_DECLS | |
99 100struct manpaths; 101 102int mansearch_setup(int); 103int mansearch(const struct mansearch *cfg, /* options */ 104 const struct manpaths *paths, /* manpaths */ 105 int argc, /* size of argv */ 106 char *argv[], /* search terms */ 107 struct manpage **res, /* results */ 108 size_t *ressz); /* results returned */ 109void mansearch_free(struct manpage *, size_t); | 98 99struct manpaths; 100 101int mansearch_setup(int); 102int mansearch(const struct mansearch *cfg, /* options */ 103 const struct manpaths *paths, /* manpaths */ 104 int argc, /* size of argv */ 105 char *argv[], /* search terms */ 106 struct manpage **res, /* results */ 107 size_t *ressz); /* results returned */ 108void mansearch_free(struct manpage *, size_t); |
110 111__END_DECLS | |