filecomplete.h revision 256281
162587Sitojun/*-
278064Sume * Copyright (c) 1997 The NetBSD Foundation, Inc.
362587Sitojun * All rights reserved.
453541Sshin *
553541Sshin * This code is derived from software contributed to The NetBSD Foundation
653541Sshin * by Jaromir Dolecek.
753541Sshin *
853541Sshin * Redistribution and use in source and binary forms, with or without
953541Sshin * modification, are permitted provided that the following conditions
1053541Sshin * are met:
1153541Sshin * 1. Redistributions of source code must retain the above copyright
1253541Sshin *    notice, this list of conditions and the following disclaimer.
1353541Sshin * 2. Redistributions in binary form must reproduce the above copyright
1453541Sshin *    notice, this list of conditions and the following disclaimer in the
1553541Sshin *    documentation and/or other materials provided with the distribution.
1653541Sshin *
1753541Sshin * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1853541Sshin * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1953541Sshin * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2053541Sshin * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2153541Sshin * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2253541Sshin * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2353541Sshin * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2453541Sshin * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2553541Sshin * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2653541Sshin * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2753541Sshin * POSSIBILITY OF SUCH DAMAGE.
2853541Sshin *
2953541Sshin *	$NetBSD: filecomplete.h,v 1.9 2009/12/30 22:37:40 christos Exp $
3053541Sshin * $FreeBSD: stable/10/lib/libedit/filecomplete.h 209219 2010-06-15 21:34:57Z jilles $
3153541Sshin */
3253541Sshin#ifndef _FILECOMPLETE_H_
3353541Sshin#define _FILECOMPLETE_H_
3453541Sshin
3553541Sshinint fn_complete(EditLine *,
3653541Sshin    char *(*)(const char *, int),
3753541Sshin    char **(*)(const char *, int, int),
3853541Sshin    const char *, const char *, const char *(*)(const char *), size_t,
3953541Sshin    int *, int *, int *, int *,
4053541Sshin    const char *(*)(const char *, const char *),
4153541Sshin    char *(*)(const char *),
4253541Sshin    char *(*)(const char *));
4353541Sshin
4453541Sshinvoid fn_display_match_list(EditLine *, char **, size_t, size_t);
4553541Sshinchar *fn_tilde_expand(const char *);
4653541Sshinchar *fn_filename_completion_function(const char *, int);
4753541Sshin
4853541Sshin#endif
4953541Sshin