Changeset View
Changeset View
Standalone View
Standalone View
lib/libedit/read.h
/* $NetBSD: read.h,v 1.9 2016/02/24 17:13:22 christos Exp $ */ | /* $NetBSD: read.h,v 1.12 2016/05/22 19:44:26 christos Exp $ */ | ||||
/*- | /*- | ||||
* Copyright (c) 2001 The NetBSD Foundation, Inc. | * Copyright (c) 2001 The NetBSD Foundation, Inc. | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* This code is derived from software contributed to The NetBSD Foundation | * This code is derived from software contributed to The NetBSD Foundation | ||||
* by Anthony Mallet. | * by Anthony Mallet. | ||||
* | * | ||||
Show All 22 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
* el.read.h: Character reading functions | * el.read.h: Character reading functions | ||||
*/ | */ | ||||
#ifndef _h_el_read | #ifndef _h_el_read | ||||
#define _h_el_read | #define _h_el_read | ||||
typedef int (*el_rfunc_t)(EditLine *, wchar_t *); | libedit_private int read_init(EditLine *); | ||||
libedit_private void read_end(struct el_read_t *); | |||||
typedef struct el_read_t { | libedit_private void read_prepare(EditLine *); | ||||
el_rfunc_t read_char; /* Function to read a character */ | libedit_private void read_finish(EditLine *); | ||||
} el_read_t; | libedit_private int el_read_setfn(struct el_read_t *, el_rfunc_t); | ||||
libedit_private el_rfunc_t el_read_getfn(struct el_read_t *); | |||||
protected int read_init(EditLine *); | |||||
protected void read_prepare(EditLine *); | |||||
protected void read_finish(EditLine *); | |||||
protected int el_read_setfn(EditLine *, el_rfunc_t); | |||||
protected el_rfunc_t el_read_getfn(EditLine *); | |||||
#endif /* _h_el_read */ | #endif /* _h_el_read */ |