1276881Sbapt/* $NetBSD: filecomplete.h,v 1.9 2009/12/30 22:37:40 christos Exp $ */ 2276881Sbapt 3209136Sjilles/*- 4209136Sjilles * Copyright (c) 1997 The NetBSD Foundation, Inc. 5209136Sjilles * All rights reserved. 6209136Sjilles * 7209136Sjilles * This code is derived from software contributed to The NetBSD Foundation 8209136Sjilles * by Jaromir Dolecek. 9209136Sjilles * 10209136Sjilles * Redistribution and use in source and binary forms, with or without 11209136Sjilles * modification, are permitted provided that the following conditions 12209136Sjilles * are met: 13209136Sjilles * 1. Redistributions of source code must retain the above copyright 14209136Sjilles * notice, this list of conditions and the following disclaimer. 15209136Sjilles * 2. Redistributions in binary form must reproduce the above copyright 16209136Sjilles * notice, this list of conditions and the following disclaimer in the 17209136Sjilles * documentation and/or other materials provided with the distribution. 18209136Sjilles * 19209136Sjilles * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20209136Sjilles * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21209136Sjilles * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22209136Sjilles * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23209136Sjilles * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24209136Sjilles * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25209136Sjilles * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26209136Sjilles * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27209136Sjilles * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28209136Sjilles * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29209136Sjilles * POSSIBILITY OF SUCH DAMAGE. 30209136Sjilles * 31209136Sjilles * $FreeBSD$ 32209136Sjilles */ 33209136Sjilles#ifndef _FILECOMPLETE_H_ 34209136Sjilles#define _FILECOMPLETE_H_ 35209136Sjilles 36209136Sjillesint fn_complete(EditLine *, 37209136Sjilles char *(*)(const char *, int), 38209136Sjilles char **(*)(const char *, int, int), 39276881Sbapt const Char *, const Char *, const char *(*)(const char *), size_t, 40209219Sjilles int *, int *, int *, int *, 41276881Sbapt const Char *(*)(const Char *, const Char *), 42276881Sbapt Char *(*)(const Char *), 43209219Sjilles char *(*)(const char *)); 44209136Sjilles 45209136Sjillesvoid fn_display_match_list(EditLine *, char **, size_t, size_t); 46209136Sjilleschar *fn_tilde_expand(const char *); 47209136Sjilleschar *fn_filename_completion_function(const char *, int); 48209136Sjilles 49209136Sjilles#endif 50