/* $NetBSD: filecomplete.h,v 1.15 2023/04/25 17:51:32 christos Exp $ */12/*-3* Copyright (c) 1997 The NetBSD Foundation, Inc.4* All rights reserved.5*6* This code is derived from software contributed to The NetBSD Foundation7* by Jaromir Dolecek.8*9* Redistribution and use in source and binary forms, with or without10* modification, are permitted provided that the following conditions11* are met:12* 1. Redistributions of source code must retain the above copyright13* notice, this list of conditions and the following disclaimer.14* 2. Redistributions in binary form must reproduce the above copyright15* notice, this list of conditions and the following disclaimer in the16* documentation and/or other materials provided with the distribution.17*18* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS19* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED20* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR21* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS22* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR23* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF24* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS25* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN26* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)27* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE28* POSSIBILITY OF SUCH DAMAGE.29*/30#ifndef _FILECOMPLETE_H_31#define _FILECOMPLETE_H_3233int fn_complete(EditLine *,34char *(*)(const char *, int),35char **(*)(const char *, int, int),36const wchar_t *, const wchar_t *, const char *(*)(const char *), size_t,37int *, int *, int *, int *);38int fn_complete2(EditLine *,39char *(*)(const char *, int),40char **(*)(const char *, int, int),41const wchar_t *, const wchar_t *, const char *(*)(const char *), size_t,42int *, int *, int *, int *, unsigned int);43#define FN_QUOTE_MATCH 1U /* Quote the returned match */4445void fn_display_match_list(EditLine *, char **, size_t, size_t,46const char *(*)(const char *));47char *fn_tilde_expand(const char *);48char *fn_filename_completion_function(const char *, int);4950/* XXX: readline */51char **completion_matches(const char *, char *(*)(const char *, int));5253#endif545556