filecomplete.h revision 209219
1209371Smav/*- 2209371Smav * Copyright (c) 1997 The NetBSD Foundation, Inc. 3209371Smav * All rights reserved. 4209371Smav * 5209371Smav * This code is derived from software contributed to The NetBSD Foundation 6209371Smav * by Jaromir Dolecek. 7209371Smav * 8209371Smav * Redistribution and use in source and binary forms, with or without 9209371Smav * modification, are permitted provided that the following conditions 10209371Smav * are met: 11209371Smav * 1. Redistributions of source code must retain the above copyright 12209371Smav * notice, this list of conditions and the following disclaimer. 13209371Smav * 2. Redistributions in binary form must reproduce the above copyright 14209371Smav * notice, this list of conditions and the following disclaimer in the 15209371Smav * documentation and/or other materials provided with the distribution. 16209371Smav * 17209371Smav * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18209371Smav * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19209371Smav * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20209371Smav * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21209371Smav * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22209371Smav * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23209371Smav * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24209371Smav * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25209371Smav * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26209371Smav * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27209371Smav * POSSIBILITY OF SUCH DAMAGE. 28209371Smav * 29209371Smav * $NetBSD: filecomplete.h,v 1.9 2009/12/30 22:37:40 christos Exp $ 30209371Smav * $FreeBSD: head/lib/libedit/filecomplete.h 209219 2010-06-15 21:34:57Z jilles $ 31209371Smav */ 32209371Smav#ifndef _FILECOMPLETE_H_ 33209371Smav#define _FILECOMPLETE_H_ 34209371Smav 35209371Smavint fn_complete(EditLine *, 36209371Smav char *(*)(const char *, int), 37209371Smav char **(*)(const char *, int, int), 38209371Smav const char *, const char *, const char *(*)(const char *), size_t, 39209371Smav int *, int *, int *, int *, 40209371Smav const char *(*)(const char *, const char *), 41209371Smav char *(*)(const char *), 42209371Smav char *(*)(const char *)); 43209371Smav 44209371Smavvoid fn_display_match_list(EditLine *, char **, size_t, size_t); 45209371Smavchar *fn_tilde_expand(const char *); 46209371Smavchar *fn_filename_completion_function(const char *, int); 47209371Smav 48209371Smav#endif 49209371Smav