filecomplete.h revision 209136
1211187Srpaulo/*- 2211187Srpaulo * Copyright (c) 1997 The NetBSD Foundation, Inc. 3211187Srpaulo * All rights reserved. 4211187Srpaulo * 5211187Srpaulo * This code is derived from software contributed to The NetBSD Foundation 6211187Srpaulo * by Jaromir Dolecek. 7211187Srpaulo * 8211187Srpaulo * Redistribution and use in source and binary forms, with or without 9211187Srpaulo * modification, are permitted provided that the following conditions 10211187Srpaulo * are met: 11211187Srpaulo * 1. Redistributions of source code must retain the above copyright 12211187Srpaulo * notice, this list of conditions and the following disclaimer. 13211187Srpaulo * 2. Redistributions in binary form must reproduce the above copyright 14211187Srpaulo * notice, this list of conditions and the following disclaimer in the 15211187Srpaulo * documentation and/or other materials provided with the distribution. 16211187Srpaulo * 17211187Srpaulo * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18211187Srpaulo * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19211187Srpaulo * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20211187Srpaulo * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21211187Srpaulo * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22211187Srpaulo * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23211187Srpaulo * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24211187Srpaulo * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25211187Srpaulo * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26211187Srpaulo * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27211187Srpaulo * POSSIBILITY OF SUCH DAMAGE. 28211187Srpaulo * 29211187Srpaulo * $NetBSD: filecomplete.h,v 1.9 2009/12/30 22:37:40 christos Exp $ 30211187Srpaulo * $FreeBSD: head/lib/libedit/filecomplete.h 209136 2010-06-13 17:04:42Z jilles $ 31211187Srpaulo */ 32211187Srpaulo#ifndef _FILECOMPLETE_H_ 33211187Srpaulo#define _FILECOMPLETE_H_ 34211187Srpaulo 35211187Srpauloint fn_complete(EditLine *, 36211187Srpaulo char *(*)(const char *, int), 37211187Srpaulo char **(*)(const char *, int, int), 38211187Srpaulo const char *, const char *, const char *(*)(const char *), size_t, 39211187Srpaulo int *, int *, int *, int *); 40211187Srpaulo 41211187Srpaulovoid fn_display_match_list(EditLine *, char **, size_t, size_t); 42211187Srpaulochar *fn_tilde_expand(const char *); 43211187Srpaulochar *fn_filename_completion_function(const char *, int); 44211187Srpaulo 45211187Srpaulo#endif 46211187Srpaulo