xref: /freebsd/contrib/libedit/read.h (revision baff8195)
1*baff8195SBaptiste Daroussin /*	$NetBSD: read.h,v 1.13 2022/10/30 19:11:31 christos Exp $	*/
2d0ef721eSBaptiste Daroussin 
3d0ef721eSBaptiste Daroussin /*-
4d0ef721eSBaptiste Daroussin  * Copyright (c) 2001 The NetBSD Foundation, Inc.
5d0ef721eSBaptiste Daroussin  * All rights reserved.
6d0ef721eSBaptiste Daroussin  *
7d0ef721eSBaptiste Daroussin  * This code is derived from software contributed to The NetBSD Foundation
8d0ef721eSBaptiste Daroussin  * by Anthony Mallet.
9d0ef721eSBaptiste Daroussin  *
10d0ef721eSBaptiste Daroussin  * Redistribution and use in source and binary forms, with or without
11d0ef721eSBaptiste Daroussin  * modification, are permitted provided that the following conditions
12d0ef721eSBaptiste Daroussin  * are met:
13d0ef721eSBaptiste Daroussin  * 1. Redistributions of source code must retain the above copyright
14d0ef721eSBaptiste Daroussin  *    notice, this list of conditions and the following disclaimer.
15d0ef721eSBaptiste Daroussin  * 2. Redistributions in binary form must reproduce the above copyright
16d0ef721eSBaptiste Daroussin  *    notice, this list of conditions and the following disclaimer in the
17d0ef721eSBaptiste Daroussin  *    documentation and/or other materials provided with the distribution.
18d0ef721eSBaptiste Daroussin  *
19d0ef721eSBaptiste Daroussin  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20d0ef721eSBaptiste Daroussin  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21d0ef721eSBaptiste Daroussin  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22d0ef721eSBaptiste Daroussin  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23d0ef721eSBaptiste Daroussin  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24d0ef721eSBaptiste Daroussin  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25d0ef721eSBaptiste Daroussin  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26d0ef721eSBaptiste Daroussin  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27d0ef721eSBaptiste Daroussin  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28d0ef721eSBaptiste Daroussin  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29d0ef721eSBaptiste Daroussin  * POSSIBILITY OF SUCH DAMAGE.
30d0ef721eSBaptiste Daroussin  */
31d0ef721eSBaptiste Daroussin 
32d0ef721eSBaptiste Daroussin /*
33d0ef721eSBaptiste Daroussin  * el.read.h: Character reading functions
34d0ef721eSBaptiste Daroussin  */
35d0ef721eSBaptiste Daroussin #ifndef	_h_el_read
36d0ef721eSBaptiste Daroussin #define	_h_el_read
37d0ef721eSBaptiste Daroussin 
38d0ef721eSBaptiste Daroussin libedit_private int		read_init(EditLine *);
39*baff8195SBaptiste Daroussin libedit_private void		read_end(EditLine *);
40d0ef721eSBaptiste Daroussin libedit_private void		read_prepare(EditLine *);
41d0ef721eSBaptiste Daroussin libedit_private void		read_finish(EditLine *);
42d0ef721eSBaptiste Daroussin libedit_private int		el_read_setfn(struct el_read_t *, el_rfunc_t);
43d0ef721eSBaptiste Daroussin libedit_private el_rfunc_t	el_read_getfn(struct el_read_t *);
44d0ef721eSBaptiste Daroussin 
45d0ef721eSBaptiste Daroussin #endif /* _h_el_read */
46